Java 类javafx.beans.binding.ObjectExpression 实例源码

项目:assertj-javafx    文件:ObjectTest.java   
@Test
public void testObjectExpression(){
    ObjectExpression<TestPerson> actual = new SimpleObjectProperty<>(person);

    assertThat(actual).hasValue(person);

    assertThat(actual).hasSameValue(actual);
}
项目:assertj-javafx    文件:Object_HasNotNullValue_Test.java   
@Test
public void testObjectExpression(){
    final ObjectExpression<TestPerson> actual = Bindings.createObjectBinding(() -> person);

    assertThat(actual).hasNotNullValue();
}
项目:assertj-javafx    文件:Object_HasNullValue_Test.java   
@Test
public void testObjectExpression(){
    final ObjectExpression<TestPerson> actual = Bindings.createObjectBinding(() -> null);

    assertThat(actual).hasNullValue();
}