mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
WIP: Added test initialise boat position test. Corrected ColorsTest after addition of two new colours.
This commit is contained in:
@@ -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(){
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user