Searched refs:observable (Results 1 – 3 of 3) sorted by relevance
77 TestObservable observable; field in ObservableTest100 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 …]
44 TestObservable observable = new TestObservable(); in testUpdate() local46 observable.addObserver(observer = new Mock_Observer()); in testUpdate()47 observable.notifyObservers(); in testUpdate()49 observable.doChange(); in testUpdate()50 observable.notifyObservers(); in testUpdate()
39 void update(Observable observable, Object data); in update() argument