| com.sun.jbi.framework.TestOperationCounter
TestOperationCounter | public class TestOperationCounter extends junit.framework.TestCase (Code) | | Tests for the OperationCounter class.
author: Sun Microsystems, Inc. |
Inner Class :class CounterThread implements Runnable | |
Constructor Summary | |
public | TestOperationCounter(String aTestName) The constructor for this testcase, forwards the test name to
the jUnit TestCase base class. |
Method Summary | |
public void | setUp() Setup for the test. | public void | tearDown() Cleanup for the test. | public void | testDecrementNotify() Test the notification capability of the decrement() method. | public void | testIncrementDecrement() Test the increment and decrement methods for the counter. |
TestOperationCounter | public TestOperationCounter(String aTestName)(Code) | | The constructor for this testcase, forwards the test name to
the jUnit TestCase base class.
Parameters: aTestName - String with the name of this test. |
setUp | public void setUp() throws Exception(Code) | | Setup for the test. This creates the OperationCounter instance.
throws: Exception - when set up fails for any reason. |
tearDown | public void tearDown() throws Exception(Code) | | Cleanup for the test.
throws: Exception - when tearDown fails for any reason. |
testDecrementNotify | public void testDecrementNotify() throws Exception(Code) | | Test the notification capability of the decrement() method.
throws: Exception - if an unexpected error occurs. |
testIncrementDecrement | public void testIncrementDecrement() throws Exception(Code) | | Test the increment and decrement methods for the counter.
throws: Exception - if an unexpected error occurs. |
|
|