use of org.eclipse.core.databinding.observable.AbstractObservable in project eclipse.platform.ui by eclipse-platform.
the class CompositeMapTest method hasListeners.
boolean hasListeners(AbstractObservable o) {
try {
Method method = AbstractObservable.class.getSuperclass().getDeclaredMethod("hasListeners", new Class[0]);
method.setAccessible(true);
return ((Boolean) method.invoke(o)).booleanValue();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
use of org.eclipse.core.databinding.observable.AbstractObservable in project eclipse.platform.ui by eclipse-platform.
the class CompositeMapTest method testDispose.
@Test
public void testDispose() {
SimplePerson person0 = new SimplePerson("p0", "a0", "c0", "s0");
person0.getCart().setNumItems(13);
persons.add(person0);
assertTrue(hasListeners((AbstractObservable) first));
composedMap.dispose();
assertFalse(hasListeners((AbstractObservable) first));
}
Aggregations