Browse Source

ai chooseField returns not null

matchfield
Max Wenzel 3 years ago
parent
commit
26bac94b5d
  1. 2
      .gitignore
  2. 9
      src/main/java/de/tims/fleetstorm/ai/Logic.java
  3. 16
      src/test/java/de/tims/fleetstorm/ai/LogicTest.java

2
.gitignore

@ -37,4 +37,4 @@ local.properties
.classpath
# VsCode
.vscode/
.vscode/

9
src/main/java/de/tims/fleetstorm/ai/Logic.java

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

16
src/test/java/de/tims/fleetstorm/ai/LogicTest.java

@ -0,0 +1,16 @@
package de.tims.fleetstorm.ai;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.junit.jupiter.api.Test;
class LogicTest {
Logic logic = new Logic();
@Test
void testFielIsNotNull() {
int[] calcResult = logic.chooseField();
assertNotNull(calcResult);
}
}
Loading…
Cancel
Save