|
|
@ -6,88 +6,106 @@ import org.junit.Test; |
|
|
|
|
|
|
|
public class SnakeGameTest { |
|
|
|
SnakeGame snek = new SnakeGame(); |
|
|
|
|
|
|
|
@Test |
|
|
|
public void test() { |
|
|
|
assertTrue(true); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void hoeheTest() { |
|
|
|
assertTrue(snek.hoehe == 600); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void breiteTest() { |
|
|
|
assertTrue(snek.breite == 1200); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void titelTest() { |
|
|
|
assertTrue(snek.titel == "Snake"); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void hoehePanelTest() { |
|
|
|
int hoehe = 100; |
|
|
|
assertTrue(snek.getHoeheP1() == hoehe ); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void breitePanelTest() { |
|
|
|
int breite = 100; |
|
|
|
assertTrue(snek.getBreiteP1() == breite ); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void hoehePane2Test() { |
|
|
|
int hoehe = 100; |
|
|
|
assertTrue(snek.getHoeheP2() == hoehe ); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void breitePane2Test() { |
|
|
|
int breite = 100; |
|
|
|
assertTrue(snek.getBreiteP2() == breite ); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void hoehePane3Test() { |
|
|
|
int hoehe = 100; |
|
|
|
assertTrue(snek.getHoeheP3() == hoehe ); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void breitePane3Test() { |
|
|
|
int breite = 100; |
|
|
|
assertTrue(snek.getBreiteP3() == breite ); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void hoehePane4Test() { |
|
|
|
int hoehe = 100; |
|
|
|
assertTrue(snek.getHoeheP4() == hoehe ); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void breitePane4Test() { |
|
|
|
int breite = 100; |
|
|
|
assertTrue(snek.getBreiteP4() == breite ); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void xCords1Test() { |
|
|
|
int Cords = 300; |
|
|
|
assertTrue(snek.getxCords1() == Cords ); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void xCords2Test() { |
|
|
|
int Cords = 400; |
|
|
|
assertTrue(snek.getxCords2() == Cords ); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void xCords3Test() { |
|
|
|
int Cords = 500; |
|
|
|
assertTrue(snek.getxCords3() == Cords ); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void xCords4Test() { |
|
|
|
int Cords = 600; |
|
|
|
assertTrue(snek.getxCords4() == Cords ); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void xCords5Test() { |
|
|
|
int Cords = 700; |
|
|
|
assertTrue(snek.getxCords5() == Cords ); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void xCords6Test() { |
|
|
|
int Cords = 800; |
|
|
|
assertTrue(snek.getxCords6() == Cords ); |
|
|
|