
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< CounterConsumer > | consumers |
| List< CounterSupplier > | suppliers |
| int | initVal = 1 |
| int | lastVal = 20 |
| int | changeVal = 0 |
| float | period = 0.5f |
| ContainerTestUtil | containerTestUtil |
alma.COUNTER.CounterConsumer to be running.
|
|
|
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8