Further work on statistics display
[jabaws.git] / testsrc / compbio / stat / collector / StatManagerTester.java
1 package compbio.stat.collector;\r
2 \r
3 import java.util.Date;\r
4 \r
5 import org.testng.Assert;\r
6 import org.testng.annotations.Test;\r
7 \r
8 import compbio.stat.collector.StatManager.DateRoller;\r
9 \r
10 public class StatManagerTester {\r
11 \r
12         @Test\r
13         public void testDateRoller() {\r
14                 DateRoller dr = new DateRoller(new Date());\r
15                 int counter = 0;\r
16                 while (dr.hasNext()) {\r
17                         dr.next();\r
18                         counter++;\r
19                 }\r
20                 Assert.assertEquals(12, counter);\r
21         }\r
22 }\r