Browse Source

matchfield: first test - creation not empty

Lorenz Hohmann 3 years ago
parent
commit
f92df8a1cb
  1. 9
      src/main/java/de/tims/fleetstorm/matchfield/MatchfieldCreation.java
  2. 16
      src/test/java/de/tims/fleetstorm/matchfield/MatchfieldCreationTest.java

9
src/main/java/de/tims/fleetstorm/matchfield/MatchfieldCreation.java

@ -0,0 +1,9 @@
package de.tims.fleetstorm.matchfield;
public class MatchfieldCreation {
public int[][] createMatchfield() {
return new int[][] {};
}
}

16
src/test/java/de/tims/fleetstorm/matchfield/MatchfieldCreationTest.java

@ -0,0 +1,16 @@
package de.tims.fleetstorm.matchfield;
import static org.junit.Assert.assertNotNull;
import org.junit.jupiter.api.Test;
class MatchfieldCreationTest {
MatchfieldCreation matchfield = new MatchfieldCreation();
@Test
void testMatchfieldCreateNotEmpty() {
int[][] calcResult = matchfield.createMatchfield();
assertNotNull(calcResult);
}
}
Loading…
Cancel
Save