@Test public void deserializeOnePlayerInHighScoreList() { _scores = SerializePlayerInformation.retrievePlayerHighScoreInformation("testOnePlayer.dat"); assertEquals(1, _scores.size()); PlayerHighScoreInformation player1 = _scores.get(0); assertEquals(50, player1.getPlayerScore()); assertEquals("ATM", player1.getPlayerInitials()); }
@Test public void deserializeMultiplePlayersInHighScoreList() { _scores = SerializePlayerInformation.retrievePlayerHighScoreInformation("testMultiplePlayer.dat"); assertEquals(2, _scores.size()); PlayerHighScoreInformation player1 = _scores.get(1); assertEquals(51, player1.getPlayerScore()); assertEquals("ATM", player1.getPlayerInitials()); }