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

Inheritance diagram for alma::COUNTER::CounterTestImpl::CounterTest:
Inheritance graph
[legend]
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

static void main (String[] args)

Static Public Attributes

static final String PROPERTYNAME_SUPPLIERNAMES = "COUNTER_SUPPLIER"
static final String PROPERTYNAME_CONSUMERNAMES = "COUNTER_CONSUMERS"
static final String PROPERTYNAME_INITVALUE = "COUNTER_INIT_VALUE"
static final String PROPERTYNAME_LASTVALUE = "COUNTER_LAST_VALUE"
static 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

static 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]
void alma::COUNTER::CounterTestImpl::CounterTest::tearDown (  )  throws Exception [inline, protected]
void alma::COUNTER::CounterTestImpl::CounterTest::testNC (  )  throws Exception [inline]

Member Data Documentation

Referenced by setUp(), and testNC().

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

Referenced by setUp(), and tearDown().

Referenced by setUp(), and testNC().

Referenced by setUp(), and tearDown().

Referenced by setUp(), and testNC().

Referenced by setUp(), and testNC().

Referenced by setUp(), and testNC().

Referenced by setUp().

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

Referenced by setUp().

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

Referenced by setUp().

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

Referenced by setUp().

Referenced by setUp().

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

Referenced by setUp(), and tearDown().

Referenced by setUp(), and testNC().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2