use of com.faforever.server.entity.PlayerDivisionInfo in project faf-java-server by FAForever.
the class DivisionServiceTest method testGetCurrentPlayerDivisionForInvalidScore.
@Test(expected = IllegalStateException.class)
public void testGetCurrentPlayerDivisionForInvalidScore() throws Exception {
PlayerDivisionInfo info = new PlayerDivisionInfo();
info.setPlayer(player1);
info.setLeague(1);
info.setScore(99999);
when(playerDivisionInfoRepository.findByPlayerAndSeason(player1, serverProperties.getLadder1v1().getSeason())).thenReturn(info);
instance.getCurrentPlayerDivision(player1);
}
Aggregations