/** * * @param bean * @param property * @return {@link ReadOnlyFloatProperty} */ protected static ReadOnlyFloatProperty numberProperty(Object bean, String property) { try { // Convert to float property so we can divide and get decimals if required. return ReadOnlyFloatProperty.readOnlyFloatProperty( JavaBeanIntegerPropertyBuilder.create().bean(bean).name(property).build() ); } catch (NoSuchMethodException e) { throw new IllegalStateException(e); } }
@Test public void testReadOnlyFloatProperty(){ ReadOnlyFloatProperty actual = new SimpleFloatProperty(30f); assertThat(actual).hasValue(30f); assertThat(actual).hasSameValue(actual); }
public ReadOnlyFloatProperty deltaTimeProperty() { return deltaTime.getReadOnlyProperty(); }
protected ReadOnlyFloatPropertyAssert(ReadOnlyFloatProperty actual) { super(actual, ReadOnlyFloatPropertyAssert.class); }