configService.isValid(game, player,ship);
}
@Test public void isConfigComplete() throws ShipExecption {
Config configService = new ConfigImpl();
List<Ship> playerShips = new ArrayList<Ship>();
playerShips.add(buildShip(shipConfigs.get(0),cellShip1));
playerShips.add(buildShip(shipConfigs.get(1),cellShip2));
playerShips.add(buildShip(shipConfigs.get(2),cellShip3));
playerShips.add(buildShip(shipConfigs.get(3),cellShip4));
playerShips.add(buildShip(shipConfigs.get(3),cellShip5));
playerShips.add(buildShip(shipConfigs.get(4),cellShip6));
playerShips.add(buildShip(shipConfigs.get(4),cellShip7));
Player player = new Player();
player.setId(1L);
player.setShips(ships);
boolean isConfigComple = configService.isComplete(gameConfig,player);
Assert.assertTrue(isConfigComple);
}