Home
last modified time | relevance | path

Searched refs:observable (Results 1 – 3 of 3) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DObservableTest.java77 TestObservable observable; field in ObservableTest
100 observable.addObserver(test); in test_addObserverLjava_util_Observer()
101 assertEquals("Failed to add observer", 1, observable.countObservers()); in test_addObserverLjava_util_Observer()
102 observable.addObserver(test); in test_addObserverLjava_util_Observer()
103 assertEquals("Duplicate observer", 1, observable.countObservers()); in test_addObserverLjava_util_Observer()
122 assertEquals("New observable had > 0 observers", 0, observable in test_countObservers()
124 observable.addObserver(new TestObserver()); in test_countObservers()
125 assertEquals("Observable with observer returned other than 1", 1, observable in test_countObservers()
135 observable.addObserver(observer = new TestObserver()); in test_deleteObserverLjava_util_Observer()
136 observable.deleteObserver(observer); in test_deleteObserverLjava_util_Observer()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DOldObserverTest.java44 TestObservable observable = new TestObservable(); in testUpdate() local
46 observable.addObserver(observer = new Mock_Observer()); in testUpdate()
47 observable.notifyObservers(); in testUpdate()
49 observable.doChange(); in testUpdate()
50 observable.notifyObservers(); in testUpdate()
/libcore/luni/src/main/java/java/util/
DObserver.java39 void update(Observable observable, Object data); in update() argument