WIP: Added test initialise boat position test. Corrected ColorsTest after addition of two new colours.

This commit is contained in:
Zhi You Tan
2017-08-05 23:59:58 +12:00
parent a727014fcb
commit 81c2a8e0fd
2 changed files with 18 additions and 3 deletions
+3 -3
View File
@@ -9,9 +9,9 @@ public class ColorsTest {
@Test @Test
public void testNextColor() { public void testNextColor() {
Color expectedColors[] = {Color.RED, Color.PERU, Color.SEAGREEN, Color.GREEN, Color.BLUE, Color.PURPLE}; Color expectedColors[] = {Color.RED, Color.PERU, Color.GOLD, Color.GREEN, Color.BLUE,
for (int i = 0; i<6; i++) Color.PURPLE, Color.DEEPPINK, Color.GRAY};
{ for (int i = 0; i < 8; i++) {
Assert.assertEquals(expectedColors[i], Colors.getColor()); Assert.assertEquals(expectedColors[i], Colors.getColor());
} }
} }
@@ -0,0 +1,15 @@
package seng302.gameServer.server;
import static junit.framework.TestCase.assertTrue;
import org.junit.Test;
/**
* Created by ryantan on 5/08/2017.
*/
public class TestInitialiseBoatPosition {
@Test
public void testInitialiseBoatPosition(){
}
}