예제 #1
0
 @Test
 public void testRemoveRanking() {
   r.doSomething();
   r.doRemoveSomething();
   Achievement ach = gs.getAchievement("Spider", "Noob");
   assertNull(ach);
   assertEquals(0, gs.getAchievements("Spider").size());
 }
예제 #2
0
 @Test
 public void testAddRanking() {
   r.doSomething();
   Achievement ach = gs.getAchievement("Spider", "Noob");
   // casting
   assertEquals(1, gs.getAchievements("Spider").size());
   assertEquals("level 1", ((Ranking) ach).getLevel());
 }