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