|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.tests.util.observer.ObserverTest
public class ObserverTest
An observer test.
| Field Summary | |
|---|---|
(package private) SettableObservableValue<Boolean> |
m_a
the inputs. |
(package private) SettableObservableValue<Boolean> |
m_b
the inputs. |
(package private) SettableObservableValue<Boolean> |
m_c
the inputs. |
(package private) Computable<Boolean> |
m_comp
the computable for g. |
(package private) LiveValue<Boolean> |
m_e
the intermediary nodes/outputs. |
(package private) LiveValue<Boolean> |
m_f
the intermediary nodes/outputs. |
(package private) LiveValue<Boolean> |
m_g
the intermediary nodes/outputs. |
(package private) int |
m_notified
counts the number of change notifications received. |
| Constructor Summary | |
|---|---|
ObserverTest()
|
|
| Method Summary | |
|---|---|
void |
changed(Boolean newRef)
|
private void |
check()
asserts that the state is consistent. |
private void |
check(Boolean newRef)
asserts that the state is consistent. |
void |
setUp()
|
void |
testInputChange()
tests propagation of changes. |
void |
testSilentSubscribe()
tests silent subscription. |
void |
testSubscribe()
tests subscription. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
SettableObservableValue<Boolean> m_a
SettableObservableValue<Boolean> m_b
SettableObservableValue<Boolean> m_c
LiveValue<Boolean> m_e
LiveValue<Boolean> m_f
LiveValue<Boolean> m_g
Computable<Boolean> m_comp
g.
int m_notified
| Constructor Detail |
|---|
public ObserverTest()
| Method Detail |
|---|
public void setUp()
public void testSubscribe()
public void testSilentSubscribe()
public void testInputChange()
private void check()
private void check(Boolean newRef)
newRef - g's current valuepublic void changed(Boolean newRef)
changed in interface ValueObserver<Boolean>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||