830ce055b04c64929e50d6f7c52665654afd1f4f
[proteocache.git] / testsrc / compbio / stat / servlet / util / StatCollectionTester.java
1 package compbio.stat.servlet.util;\r
2 \r
3 import java.sql.SQLException;\r
4 import java.util.Calendar;\r
5 import java.util.Date;\r
6 import java.util.GregorianCalendar;\r
7 import java.util.Map;\r
8 \r
9 import org.testng.Assert;\r
10 import org.testng.annotations.Test;\r
11 \r
12 public class StatCollectionTester {\r
13 \r
14         @Test\r
15         public void testGetStats() {\r
16                 Map<Date, Totals> stats;\r
17                 Calendar cal = GregorianCalendar.getInstance();\r
18                 cal.add(Calendar.MONTH, -3);\r
19 \r
20                 try {\r
21                         stats = StatCollection.getStats(cal.getTime());\r
22 \r
23                 } catch (SQLException e) {\r
24                         e.printStackTrace();\r
25                         Assert.fail(e.getMessage());\r
26                 }\r
27 \r
28         }\r
29 \r
30 }\r