Search in sources :

Example 1 with MatchMakerBanDetails

use of com.faforever.server.entity.MatchMakerBanDetails in project faf-java-server by FAForever.

the class MatchMakerServiceTest method startSearchBanned.

@Test
public void startSearchBanned() throws Exception {
    Player player = new Player();
    player.setMatchMakerBanDetails(new MatchMakerBanDetails());
    expectedException.expect(requestExceptionWithCode(ErrorCode.BANNED_FROM_MATCH_MAKER));
    instance.submitSearch(player, Faction.CYBRAN, QUEUE_NAME);
}
Also used : MatchMakerBanDetails(com.faforever.server.entity.MatchMakerBanDetails) Player(com.faforever.server.entity.Player) Test(org.junit.Test)

Aggregations

MatchMakerBanDetails (com.faforever.server.entity.MatchMakerBanDetails)1 Player (com.faforever.server.entity.Player)1 Test (org.junit.Test)1