This commit is contained in:
Michael Rausch
2017-03-24 20:45:49 +13:00
19 changed files with 269 additions and 512 deletions
@@ -14,7 +14,7 @@ public class ConfigParserTest {
@Before
public void initializeParser() throws Exception {
cp = new ConfigParser("doc/examples/config.xml");
cp = new ConfigParser("/config.xml");
}
@Test
@@ -18,7 +18,7 @@ public class CourseParserTest {
@Before
public void initializeParser() throws Exception {
cp = new CourseParser("doc/examples/course.xml");
cp = new CourseParser("/course.xml");
}
@Test
@@ -16,7 +16,7 @@ public class TeamsParserTest {
private TeamsParser tp;
@Before
public void readFile() {
tp = new TeamsParser("doc/examples/teams.xml");
tp = new TeamsParser("/teams.xml");
}
@Test
@@ -26,10 +26,10 @@ public class TeamsParserTest {
assertEquals(6, boats.size(), 1e-10);
assertEquals("Oracle Team USA", boats.get(0).getTeamName());
assertEquals(10, boats.get(0).getVelocity(), 1e-10);
assertEquals(30.9, boats.get(0).getVelocity(), 1e-10);
assertEquals("Groupama Team France", boats.get(5).getTeamName());
assertEquals(10, boats.get(5).getVelocity(), 1e-10);
assertEquals(45.6, boats.get(5).getVelocity(), 1e-10);
}
}