mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Fixed documentation for FileParserTest and LegTest
#document #fix
This commit is contained in:
@@ -12,16 +12,16 @@ import static org.junit.Assert.assertEquals;
|
|||||||
*/
|
*/
|
||||||
public class FileParserTest {
|
public class FileParserTest {
|
||||||
|
|
||||||
/*
|
/**
|
||||||
test if it fails from reading non existed file
|
* test if it fails from reading non existed file
|
||||||
*/
|
*/
|
||||||
@Test(expected = FileNotFoundException.class)
|
@Test(expected = FileNotFoundException.class)
|
||||||
public void readNonExistedFile() throws Exception {
|
public void readNonExistedFile() throws Exception {
|
||||||
FileParser fileParser = new FileParser("test/java/seng302/non-existed.json");
|
FileParser fileParser = new FileParser("test/java/seng302/non-existed.json");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
test a valid json file with valid content.
|
* test a valid json file with valid content.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void readValidFile() throws Exception {
|
public void readValidFile() throws Exception {
|
||||||
@@ -35,9 +35,9 @@ public class FileParserTest {
|
|||||||
assertEquals(6, fileParser.getTotalNumberOfTeams());
|
assertEquals(6, fileParser.getTotalNumberOfTeams());
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
test an invalid json file within wrong type value and misnamed
|
* test an invalid json file within wrong type value and misnamed
|
||||||
variable name.
|
* variable name.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void readInvalidFile() throws Exception {
|
public void readInvalidFile() throws Exception {
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import static org.junit.Assert.assertEquals;
|
|||||||
*/
|
*/
|
||||||
public class LegTest {
|
public class LegTest {
|
||||||
|
|
||||||
/*
|
/**
|
||||||
Test creation of the leg by specifying a string
|
* Test creation of the leg by specifying a string
|
||||||
for the marker label
|
* for the marker label
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testLegCreationUsingMarkerLabel() {
|
public void testLegCreationUsingMarkerLabel() {
|
||||||
@@ -23,9 +23,9 @@ public class LegTest {
|
|||||||
assertEquals(leg.getIsFinishingLeg(), false);
|
assertEquals(leg.getIsFinishingLeg(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
Test creation of the leg by providing a
|
* Test creation of the leg by providing a
|
||||||
Marker object
|
* Marker object
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testLegCreation() {
|
public void testLegCreation() {
|
||||||
@@ -37,9 +37,9 @@ public class LegTest {
|
|||||||
assertEquals(leg.getIsFinishingLeg(), false);
|
assertEquals(leg.getIsFinishingLeg(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
Test changing whether or not a
|
* Test changing whether or not a
|
||||||
leg is the finishing leg
|
* leg is the finishing leg
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testSetFinishLeg() {
|
public void testSetFinishLeg() {
|
||||||
|
|||||||
Reference in New Issue
Block a user