@@ -0,0 +1,1606 @@
+package org.fundacionjala.sevenwonders.core;%0A%0Aimport org.fundacionjala.sevenwonders.core.rest.*;%0Aimport org.fundacionjala.sevenwonders.core.rest.Player;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A/**%0A * Used to test all the functionality of the %7B@link GameRoom%7D.%0A *%0A * @author Juan Manuel Barahona%0A */%0Apublic class GameRoomTest %7B%0A%0A    @Test%0A    public void testAddPlayer()%7B%0A        int maxPlayers = 2;%0A        GameRoom gameRoom = new GameRoom(maxPlayers);%0A%0A        gameRoom.addPlayer(new Player());%0A        gameRoom.addPlayer(new Player());%0A%0A        Assert.assertEquals(2, gameRoom.getPlayers().size());%0A        Assert.assertFalse(gameRoom.getMaxPlayers() %3E gameRoom.getPlayers().size());%0A    %7D%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void testAddPlayerFail()%7B%0A        int maxPlayers = 2;%0A        GameRoom gameRoom = new GameRoom(maxPlayers);%0A%0A        gameRoom.addPlayer(new Player());%0A        gameRoom.addPlayer(new Player());%0A        gameRoom.addPlayer(new Player());%0A        Assert.fail();%0A    %7D%0A%0A    @Test%0A    public void testAssignWonders()%7B%0A        int maxPlayers = 3;%0A        GameRoom gameRoom = new GameRoom(maxPlayers);%0A%0A        gameRoom.addPlayer(new Player());%0A        gameRoom.addPlayer(new Player());%0A        gameRoom.addPlayer(new Player());%0A%0A        Game game = gameRoom.createGame();%0A%0A        Assert.assertEquals(3, game.getPlayers().size());%0A        game.getPlayers().stream().forEach(player -%3E %7B%0A            Assert.assertTrue(player.getDeck().size() %3E 0);%0A            Assert.assertTrue(player.getCity().getWonder().getName() != null);%0A        %7D);%0A%0A    %7D%0A%0A%7D%0A

add test of gameroom function