Ejemplo n.º 1
0
 @Test
 public void testRemoveTrophies() {
   t.doSomething();
   t.doRemoveSomething();
   Achievement ach = gs.getAchievement("Spider", "champion");
   assertNull(ach);
   assertEquals(0, gs.getAchievements("Spider").size());
 }
Ejemplo n.º 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());
 }