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