예제 #1
0
 @Test
 public void testRemoveTrophies() {
   t.doSomething();
   t.doRemoveSomething();
   Achievement ach = gs.getAchievement("Spider", "champion");
   assertNull(ach);
   assertEquals(0, gs.getAchievements("Spider").size());
 }
예제 #2
0
 @Test
 public void testAddTwoDiferentesTrophies() {
   t.doSomething();
   t.doSomething2();
   Achievement ach = gs.getAchievement("Spider", "champion");
   assertEquals(2, gs.getAchievements("Spider").size());
   assertEquals("champion", ((Trophy) ach).getName());
 }