use of com.canoo.dp.impl.remoting.collections.ObservableArrayList in project dolphin-platform by canoo.
the class FXBinderTest method testConvertedListBinding.
@Test
public void testConvertedListBinding() {
ObservableList<Boolean> dolphinList = new ObservableArrayList<>();
javafx.collections.ObservableList<String> javaFXList = FXCollections.observableArrayList();
Binding binding = FXBinder.bind(javaFXList).to(dolphinList, value -> value.toString());
dolphinList.add(true);
assertEquals(dolphinList.size(), 1);
assertEquals(javaFXList.size(), 1);
assertEquals(javaFXList.get(0), "true");
}
Aggregations