Commits

John McDonnell  committed 8f5cd4e

Updated the Team Statistics Tests to include tests for all 4 types of Teams.

  • Participants
  • Parent commits e3ca00b

Comments (0)

Files changed (1)

File src/test/java/org/jmcdonnell/blackoutrugby/requests/RequestManagerTeamStatisiticsTest.java

     }
     
     @Test
-    public void testGetTeamStatisticsByIdNotNull() throws BlackoutException
+    public void testGetDefaultTeamStatisicsByIdNotNull() throws BlackoutException
     {
         TeamStatistics teamStats 
             = requestManager.getEntityFromApi(new Long(System.getProperty("member.team.id")), TeamStatistics.class);
         assertNotNull(teamStats);
     }
     
+    @Test
+    public void testGetNationalTeamStatisicsByIdNotNull() throws BlackoutException
+    {
+        TeamStatistics teamStats 
+            = requestManager.getEntityFromApi(new Long(9), TeamStatistics.class, Boolean.TRUE, Boolean.FALSE);
+        
+        assertNotNull(teamStats);
+    }
+    
+    @Test
+    public void testGetUnderTwentyTeamStatisicsByIdNotNull() throws BlackoutException
+    {
+        TeamStatistics teamStats 
+            = requestManager.getEntityFromApi(new Long(9), TeamStatistics.class, Boolean.TRUE,  Boolean.TRUE);
+        
+        assertNotNull(teamStats);
+    }
+    
+    @Test
+    public void testGetClubTeamStatisicsByIdNotNull() throws BlackoutException
+    {
+        TeamStatistics teamStats 
+            = requestManager.getEntityFromApi(new Long(System.getProperty("member.team.id")), TeamStatistics.class, Boolean.FALSE, Boolean.FALSE);
+        
+        assertNotNull(teamStats);
+    }
+    
+    @Test
+    public void testGetYouthTeamStatisicsByIdNotNull() throws BlackoutException
+    {
+        TeamStatistics teamStats 
+            = requestManager.getEntityFromApi(new Long(System.getProperty("member.team.id")), TeamStatistics.class, Boolean.FALSE, Boolean.TRUE);
+        
+        assertNotNull(teamStats);
+    }
+    
    
     @Test
     public void testGetTeamStatisticsById() throws BlackoutException