ch.elca.el4j.tests.util.observer
Class AnotherObserverTest

java.lang.Object
  extended by ch.elca.el4j.tests.util.observer.AnotherObserverTest
All Implemented Interfaces:
ValueObserver<Integer>

public class AnotherObserverTest
extends Object
implements ValueObserver<Integer>

Another test case for the observer package.

Author:
Adrian Moos (AMS)
File-location:
AnotherObserverTest
Last check-in date:
2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873

Nested Class Summary
(package private)  class AnotherObserverTest.Sum
           
 
Field Summary
(package private)  ObservableValue<Integer> m_last
          the last value.
(package private)  int m_notified
          counts the number of change notifications received.
(package private)  SettableObservableValue<Integer> m_origin
          the first value.
(package private)  ObservableValue<Integer>[] m_values
          the list of all values.
(package private) static int SIZE
          the size of this test.
 
Constructor Summary
AnotherObserverTest()
           
 
Method Summary
 void changed(Integer newRef)
          
 void setUp()
          
 void testUnsubscribe()
          tests unsubscription.
 void testUpdate()
          tests update propagation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE

static final int SIZE
the size of this test. Must be in 1..32

See Also:
Constant Field Values

m_origin

SettableObservableValue<Integer> m_origin
the first value.


m_values

ObservableValue<Integer>[] m_values
the list of all values.


m_last

ObservableValue<Integer> m_last
the last value.


m_notified

int m_notified
counts the number of change notifications received.

Constructor Detail

AnotherObserverTest

public AnotherObserverTest()
Method Detail

setUp

public void setUp()


changed

public void changed(Integer newRef)

Specified by:
changed in interface ValueObserver<Integer>

testUpdate

public void testUpdate()
tests update propagation.


testUnsubscribe

public void testUnsubscribe()
tests unsubscription.



Copyright © 2005-2011 ELCA. All Rights Reserved.