

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< CounterConsumer > | consumers |
| List< CounterSupplier > | suppliers |
| int | initVal = 1 |
| int | lastVal = 20 |
| int | changeVal = 0 |
| float | period = 0.5f |
| ContainerTestUtil | containerTestUtil |
Requires Java component "CONSUMER_JAVA" of type alma.COUNTER.CounterConsumer to be running.
| alma::COUNTER::CounterTestImpl::CounterTest::CounterTest | ( | ) | throws Exception [inline] |
| java.lang.Exception |
| 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] |
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
References changeVal, consumerNames, consumers, containerTestUtil, alma::acs::component::client::ComponentClientTestCase::getContainerServices(), initVal, lastVal, alma::COUNTER::CounterTestImpl::ContainerTestUtil::loginToManager(), alma::acs::component::client::ComponentClientTestCase::m_acsManagerProxy, period, PROPERTYNAME_CONSUMERNAMES, PROPERTYNAME_INITVALUE, PROPERTYNAME_LASTVALUE, PROPERTYNAME_PERIOD, PROPERTYNAME_SUPPLIERNAMES, supplierNames, and suppliers.
| void alma::COUNTER::CounterTestImpl::CounterTest::tearDown | ( | ) | throws Exception [inline, protected] |
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
References consumerNames, containerTestUtil, alma::acs::component::client::ComponentClientTestCase::getContainerServices(), alma::COUNTER::CounterTestImpl::ContainerTestUtil::logoutFromManager(), alma::acs::container::ContainerServices::releaseComponent(), and supplierNames.
| void alma::COUNTER::CounterTestImpl::CounterTest::testNC | ( | ) | throws Exception [inline] |
int alma::COUNTER::CounterTestImpl::CounterTest::changeVal = 0 [private] |
Set<String> alma::COUNTER::CounterTestImpl::CounterTest::consumerNames = new LinkedHashSet<String>() [private] |
Referenced by setUp(), and tearDown().
Referenced by setUp(), and tearDown().
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] |
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().
final String alma::COUNTER::CounterTestImpl::CounterTest::PROPERTYNAME_SUPPLIERNAMES = "COUNTER_SUPPLIER" [static] |
Referenced by setUp().
Set<String> alma::COUNTER::CounterTestImpl::CounterTest::supplierNames = new LinkedHashSet<String>() [private] |
Referenced by setUp(), and tearDown().
1.6.2