changed test names for easier debugging
parent
e131950044
commit
4ae7dab07f
|
@ -16,7 +16,7 @@ import de.hs_mannheim.informatik.mvn.gui.GameGUI;
|
|||
class HitoriTest{
|
||||
|
||||
@Test
|
||||
void test1() {
|
||||
void makeColorArrayTest1() {
|
||||
String[][] array3x3 = {
|
||||
{"W", "W", "W"},
|
||||
{"W", "W", "W"},
|
||||
|
@ -26,7 +26,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test2() {
|
||||
void makeColorArrayTest2() {
|
||||
String[][] array3x2 = {
|
||||
{"W", "W", "W"},
|
||||
{"W", "W", "W"},
|
||||
|
@ -35,12 +35,12 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test3() {
|
||||
void checkStartTimeTest() {
|
||||
assertEquals("Zeit: 00:00", GameGUI.startTimer());
|
||||
}
|
||||
|
||||
@Test
|
||||
void test4() {
|
||||
void checkArraySameTest1() {
|
||||
String[][] data = {
|
||||
{"W", "B", "W", "W"},
|
||||
{"W", "W", "W", "B"},
|
||||
|
@ -55,7 +55,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test5() {
|
||||
void checkArraySameTest2() {
|
||||
String[][] data = {
|
||||
{"W", "B", "W", "W"},
|
||||
{"W", "W", "W", "B"},
|
||||
|
@ -71,7 +71,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test6() {
|
||||
void checkArraySameTest3() {
|
||||
String[][] data = {
|
||||
{"B", "W", "W", "B", "W"},
|
||||
{"W", "W", "B", "W", "W"},
|
||||
|
@ -88,7 +88,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test7() {
|
||||
void checkArraySameTest4() {
|
||||
String[][] data = {
|
||||
{"B", "W", "W", "B", "W"},
|
||||
{"W", "W", "B", "W", "W"},
|
||||
|
@ -105,19 +105,19 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test8() {
|
||||
void getCordsTest1() {
|
||||
String[] array = {"3", "4"};
|
||||
assertFalse(Arrays.deepEquals(array, HitoriMain2.getCords(3, 3)));
|
||||
}
|
||||
|
||||
@Test
|
||||
void test9() {
|
||||
void getCordsTest2() {
|
||||
String[] array = {"3", "4"};
|
||||
assertTrue(Arrays.deepEquals(array, HitoriMain2.getCords(3, 4)));
|
||||
}
|
||||
|
||||
@Test
|
||||
void test10() throws FileNotFoundException {
|
||||
void checkArraySameTest5() throws FileNotFoundException {
|
||||
String[][] data = {
|
||||
{"B", "W", "B", "W", "W", "B", "W", "W", "W", "B"},
|
||||
{"W", "W", "W", "B", "W", "W", "B", "W", "W", "W"},
|
||||
|
@ -144,7 +144,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test11() {
|
||||
void checkArraySameTest6() {
|
||||
String[][] data = {
|
||||
{"B", "W", "B", "W", "W", "B", "W", "W", "W", "B"},
|
||||
{"W", "W", "W", "B", "W", "W", "B", "W", "W", "W"},
|
||||
|
@ -171,7 +171,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test12() {
|
||||
void getResultTest1() {
|
||||
String[][] data = {
|
||||
{"W", "G", "B", "W"},
|
||||
{"G", "B", "W", "G"},
|
||||
|
@ -191,7 +191,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test13() {
|
||||
void getResultTest2() {
|
||||
String[][] data = {
|
||||
{"W", "G", "B", "W"},
|
||||
{"G", "B", "W", "G"},
|
||||
|
@ -211,7 +211,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test14() throws FileNotFoundException {
|
||||
void getSolutionTest1() throws FileNotFoundException {
|
||||
String[] ergebnis4x4 = {"0,1", "1,3", "2,1", "3,0", "3,3"};
|
||||
String path = "/Hitori_Spielfelder/Hitori4x4_leicht.csv";
|
||||
InputStream inputStream = getClass().getResourceAsStream(path);
|
||||
|
@ -225,7 +225,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test15() throws FileNotFoundException {
|
||||
void getSolutionTest2() throws FileNotFoundException {
|
||||
String[] ergebnis4x4 = {"0,0"};
|
||||
String path = "/Hitori_Spielfelder/Hitori4x4_leicht.csv";
|
||||
InputStream inputStream = getClass().getResourceAsStream(path);
|
||||
|
@ -239,7 +239,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test16() {
|
||||
void makeColorArrayTest1() {
|
||||
String[][] colors = {
|
||||
{"W", "W", "W", "W"},
|
||||
{"W", "W", "W", "W"},
|
||||
|
@ -249,7 +249,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test17() {
|
||||
void makeColorArrayTest2() {
|
||||
String[][] colors = {
|
||||
{"B", "W", "W", "W"},
|
||||
{"B", "W", "W", "W"},
|
||||
|
@ -259,7 +259,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test18() throws FileNotFoundException {
|
||||
void getDataTest1() throws FileNotFoundException {
|
||||
String[][] data = {
|
||||
{"3", "3", "1", "4"},
|
||||
{"4", "3", "2", "2"},
|
||||
|
@ -271,7 +271,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test19() throws FileNotFoundException {
|
||||
void getDataTest2() throws FileNotFoundException {
|
||||
String[][] data = {
|
||||
{"3", "0", "1", "4"},
|
||||
{"4", "0", "2", "2"},
|
||||
|
@ -283,7 +283,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test20() {
|
||||
void readFromFileTest1() {
|
||||
String[] file = {
|
||||
"3,3,1,4",
|
||||
"4,3,2,2",
|
||||
|
@ -307,7 +307,7 @@ class HitoriTest{
|
|||
}
|
||||
|
||||
@Test
|
||||
void test21() {
|
||||
void readFromFileTest2() {
|
||||
String[] file = {
|
||||
"3,3,1,0",
|
||||
"4,3,2,0",
|
||||
|
@ -333,7 +333,7 @@ class HitoriTest{
|
|||
|
||||
|
||||
@Test
|
||||
void test22() throws IOException {
|
||||
void getErgebnisArrayTest1() throws IOException {
|
||||
String[][] ergebnis1 = {
|
||||
{"W", "B", "W", "W"},
|
||||
{"W", "W", "W", "B"},
|
||||
|
@ -350,7 +350,7 @@ class HitoriTest{
|
|||
|
||||
|
||||
@Test
|
||||
void test23() throws IOException {
|
||||
void getErgebnisArrayTest2() throws IOException {
|
||||
String[][] ergebnis1 = {
|
||||
{"W", "W", "W", "W"},
|
||||
{"W", "W", "W", "W"},
|
||||
|
|
Loading…
Reference in New Issue