use of org.eclipse.jface.databinding.conformance.util.SetChangeEventTracker in project eclipse.platform.ui by eclipse-platform.
the class JavaBeanObservableArrayBasedSetTest method testSetChangeEventFiresWhenNewSetIsSet.
@Test
public void testSetChangeEventFiresWhenNewSetIsSet() throws Exception {
Bean[] elements = new Bean[] { new Bean(), new Bean() };
SetChangeEventTracker listener = SetChangeEventTracker.observe(set);
assertEquals(0, listener.count);
bean.setArray(elements);
assertEquals(1, listener.count);
}
Aggregations