@@ -0,0 +1,1872 @@
+package edu.utexas.ece.jacobingalls;%0A%0Aimport edu.utexas.ece.jacobingalls.player.Player;%0Aimport edu.utexas.ece.jacobingalls.things.buildings.RobotFactory;%0Aimport edu.utexas.ece.jacobingalls.things.buildings.TeamBase;%0Aimport edu.utexas.ece.jacobingalls.things.robots.AIRobot;%0Aimport edu.utexas.ece.jacobingalls.things.robots.Blueprint;%0Aimport javafx.scene.paint.Color;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.util.Arrays;%0A%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * Created by jacobingalls on 12/2/15.%0A */%0Apublic class GameTest %7B%0A%0A%09Game game;%0A%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%09game = new Game(new Player(Color.GREEN), new Player(Color.RED));%0A%09%09Game.game = game;%0A%09%7D%0A%0A%09@Test%0A%09public void testTick() throws Exception %7B%0A%09%09game.getThings().addAll(Arrays.asList(new TeamBase(game.getPlayer()), new TeamBase(game.getAiplayer())));%0A%09%09assertFalse(game.gameOver);%0A%09%09game.tick(1);%0A%09%09assertFalse(game.gameOver);%0A%0A%09%09game.getThings().add(new RobotFactory(game.getPlayer(), 100,100,%0A%09%09%09%09team -%3E Blueprint.SMALL_FIGHTER.build(AIRobot.class, team).get()%0A%09%09));%0A%0A%09%09game.getPlayer().getFactories().findFirst().get().setNumberToBuild(1);%0A%09%09assertFalse(game.getPlayer().getFactories().findFirst().get().isBuilding());%0A%09%09assertFalse(game.getPlayer().getFactories().findFirst().get().getBuildPercentage() %3E 0);%0A%0A%09%09for (int i = 0; i %3C 100; i++) %7B%0A%09%09%09game.tick(16);%0A%09%09%7D%0A%0A%09%09assertTrue(game.getPlayer().getFactories().findFirst().get().isBuilding());%0A%09%09assertTrue(game.getPlayer().getFactories().findFirst().get().getBuildPercentage() %3E 0);%0A%0A%09%09game.getPlayer().getBases().forEach(teamBase -%3E teamBase.damage(0,0,teamBase.getHealth() + 1));%0A%09%09game.tick(1);%0A%0A%09%09assertTrue(game.gameOver);%0A%09%7D%0A%0A%09@Test%0A%09public void testConfigureWorld() throws Exception %7B%0A%09%09assertTrue(game.getThings().isEmpty());%0A%09%09game.configureWorld();%0A%09%09assertFalse(game.getThings().isEmpty());%0A%09%7D%0A%7D

Add game tests