Assertions.assertEquals('E',state.getCurrentPhase(),"The test failed because the current phase is not E");
Assertions.assertEquals(GameDataLoader.DEFAULT_GAME,state.toString(),"The test failed because the state created from the string is not the same as the state created from the string");
Assertions.assertTrue(island.equals(state.getIsland(0)),"The test failed because the island at index 0 is not the same as the island created above");
island.addCoord(newCoord(2,2));
Assertions.assertFalse(island.equals(state.getIsland(0)),"The test failed because the island at index 0 is the same as the island created above even though it should not be because the island created above has 11 coords while the island at index 0 has 12 coords");
Assertions.assertTrue(state.isStone(newCoord(0,0)),"The test failed because the stone at (0,0) is not a stone");
Assertions.assertFalse(state.isStone(newCoord(0,1)),"The test failed because the stone at (0,5) is a stone even though it should not be because there is no stone at that location");
// Creating a test player for the string
// p 0 0 0 0 0 0 0 S T;
Playerplayer=newPlayer(0);
Assertions.assertTrue(player.equals(state.getPlayer(0)),"The test failed because the player at index 0 is not the same as the player created above");
player.addScore(1);
Assertions.assertFalse(player.equals(state.getPlayer(0)),"The test failed because the player at index 0 is the same as the player created above even though it should not be because the player created above has a score of 1 while the player at index 0 has a score of 0");
player=newPlayer(0);
player.addVillage(newCoord(0,0));
Assertions.assertFalse(player.equals(state.getPlayer(0)),"The test failed because the player at index 0 is the same as the player created above even though it should not be because the player created above has a village at (0,0) while the player at index 0 has no villages");
player=newPlayer(0);
player.addResource(1,'C');
Assertions.assertFalse(player.equals(state.getPlayer(0)),"The test failed because the player at index 0 is the same as the player created above even though it should not be because the player created above has a resource of 1 for C while the player at index 0 has a resource of 0 for C");
Assertions.assertEquals(34,state.scoreMajorities(0),"The test failed because the score of the islands for player 0 is not 34");
Assertions.assertEquals(28,state.scoreMajorities(1),"The test failed because the score of the islands for player 1 is not 28");
Assertions.assertEquals(0,state.scoreTotalIslands(0),"The test failed because the score of the islands for player 0 is not 0");
Assertions.assertEquals(1,state.getPlayer(0).getNumResource(toClaim.getType()),"The test failed because the number of resources for player 0 is not 1");
}
@Test
publicvoidtestStateWHEELSGAME(){
Statestate=newState(GameDataLoader.WHEELS_GAME);
Assertions.assertEquals(GameDataLoader.WHEELS_GAME,state.toString(),"The test failed because the state created from the string is not the same as the state created from the string");