@Test public void ex2_endMatch() throws MatchException { MatchData match = test.newMatch(ID); assertNotNull(match); MatchData data = test.endMatch(); assertTrue(test.getCurrentMathData().getId().equals(UNKNOWN_MATCH)); assertTrue(data.getId().equals(ID)); }
@Test public void ex1_startMatch() throws MatchException { MatchData match = test.newMatch(ID); assertNotNull(match); MatchData match2 = test.getCurrentMathData(); assertNotNull(match2); assertTrue(match.equals(match2)); }