Added extra constructor in Race.
-Constructor is used for junit testing for Race class. #story[778]
This commit is contained in:
@@ -3,8 +3,13 @@ package seng302.Model;
|
||||
import javafx.scene.paint.Color;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.xml.sax.SAXException;
|
||||
import seng302.GPSCoordinate;
|
||||
import seng302.Mock.RaceDataSource;
|
||||
import seng302.RaceXMLReader;
|
||||
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
@@ -22,7 +27,7 @@ public class RaceTest {
|
||||
|
||||
@Ignore
|
||||
@Test
|
||||
public void timerCanBeDisabled() {
|
||||
public void timerCanBeDisabled(){
|
||||
BoatInRace boat1 = new BoatInRace("Test 1", 10000, Color.ALICEBLUE, "t1", 1);
|
||||
BoatInRace boat2 = new BoatInRace("Test 2", 10000, Color.BURLYWOOD, "t2", 2);
|
||||
//BoatInRace[] boats = new BoatInRace[]{boat1, boat2};
|
||||
|
||||
Reference in New Issue
Block a user