01: package org.objectweb.celtix.bus.management.counters;
02:
03: import junit.framework.TestCase;
04:
05: public class CountersTest extends TestCase {
06:
07: public void testCounter() {
08: Counter counter = new Counter("TestCounter");
09: counter.reset();
10: counter.increase();
11: assertEquals("The Counter value is incorrcet ", 1, counter
12: .getValue());
13: counter.reset();
14: assertEquals("The Counter should be rest to 0", 0, counter
15: .getValue());
16: }
17:
18: }
|