353637383940414243444546
// Achieve a Trophy api.achieveTrophy(TROPHY_ID); //get single trophy and check if it is achieved Trophy t = api.getTrophy(TROPHY_ID); if (!t.isAchieved()){ System.err.println("Trophy was achieved, but is not marked achieved..."); } // get Userdata api.getUser("CROS");
596061626364656667
assertTrue(api.achieveTrophy(trophyId)); assertFalse(api.achieveTrophy(-1)); } @Test public void testGetTrophy(){ Trophy t = api.getTrophy(trophyId); assertNotNull(t); assertNull(api.getTrophy(-1)); }