Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::COUNTER::CounterTestImpl::CounterTest Class Reference

Collaboration diagram for alma::COUNTER::CounterTestImpl::CounterTest:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CounterTest () throws Exception
void testNC () throws Exception

Static Public Member Functions

void main (String[] args)

Static Public Attributes

final String PROPERTYNAME_SUPPLIERNAMES = "COUNTER_SUPPLIER"
final String PROPERTYNAME_CONSUMERNAMES = "COUNTER_CONSUMERS"
final String PROPERTYNAME_INITVALUE = "COUNTER_INIT_VALUE"
final String PROPERTYNAME_LASTVALUE = "COUNTER_LAST_VALUE"
final String PROPERTYNAME_PERIOD = "COUNTER_PERIOD"

Protected Member Functions

void setUp () throws Exception
void tearDown () throws Exception

Private Attributes

Set< String > supplierNames = new LinkedHashSet<String>()
Set< String > consumerNames = new LinkedHashSet<String>()
List< CounterConsumerconsumers
List< CounterSuppliersuppliers
int initVal = 1
int lastVal = 20
int changeVal = 0
float period = 0.5f
ContainerTestUtil containerTestUtil

Detailed Description

Requires Java component "CONSUMER_JAVA" of type alma.COUNTER.CounterConsumer to be running.

Author:
eallaert 30 October 2007


Constructor & Destructor Documentation

alma::COUNTER::CounterTestImpl::CounterTest::CounterTest  )  throws Exception [inline]
 

Exceptions:
java.lang.Exception 


Member Function Documentation

void alma::COUNTER::CounterTestImpl::CounterTest::main String[]  args  )  [inline, static]
 

We usually don't require a main method for a JUnit test to run successfully. Therefore instead of getting component names from the arg list, they should be given in the PROPERTYNAME_COMPONENTNAMES Java property that gets evaluated in the setUp method.

void alma::COUNTER::CounterTestImpl::CounterTest::setUp  )  throws Exception [inline, protected]
 

See also:
TestCase#setUp()

void alma::COUNTER::CounterTestImpl::CounterTest::tearDown  )  throws Exception [inline, protected]
 

See also:
TestCase#tearDown()

void alma::COUNTER::CounterTestImpl::CounterTest::testNC  )  throws Exception [inline]
 

Exceptions:
Exception 


Member Data Documentation

int alma::COUNTER::CounterTestImpl::CounterTest::changeVal = 0 [private]
 

Set<String> alma::COUNTER::CounterTestImpl::CounterTest::consumerNames = new LinkedHashSet<String>() [private]
 

List<CounterConsumer> alma::COUNTER::CounterTestImpl::CounterTest::consumers [private]
 

ContainerTestUtil alma::COUNTER::CounterTestImpl::CounterTest::containerTestUtil [private]
 

int alma::COUNTER::CounterTestImpl::CounterTest::initVal = 1 [private]
 

int alma::COUNTER::CounterTestImpl::CounterTest::lastVal = 20 [private]
 

float alma::COUNTER::CounterTestImpl::CounterTest::period = 0.5f [private]
 

final String alma::COUNTER::CounterTestImpl::CounterTest::PROPERTYNAME_CONSUMERNAMES = "COUNTER_CONSUMERS" [static]
 

final String alma::COUNTER::CounterTestImpl::CounterTest::PROPERTYNAME_INITVALUE = "COUNTER_INIT_VALUE" [static]
 

final String alma::COUNTER::CounterTestImpl::CounterTest::PROPERTYNAME_LASTVALUE = "COUNTER_LAST_VALUE" [static]
 

final String alma::COUNTER::CounterTestImpl::CounterTest::PROPERTYNAME_PERIOD = "COUNTER_PERIOD" [static]
 

final String alma::COUNTER::CounterTestImpl::CounterTest::PROPERTYNAME_SUPPLIERNAMES = "COUNTER_SUPPLIER" [static]
 

Set<String> alma::COUNTER::CounterTestImpl::CounterTest::supplierNames = new LinkedHashSet<String>() [private]
 

List<CounterSupplier> alma::COUNTER::CounterTestImpl::CounterTest::suppliers [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:03:25 2009 for ACS Java API by doxygen 1.3.8