From f92df8a1cb6a4695dcfb3761fe8b69efd12d7400 Mon Sep 17 00:00:00 2001 From: Lorenz Hohmann Date: Thu, 16 Dec 2021 13:38:22 +0100 Subject: [PATCH] matchfield: first test - creation not empty --- .../matchfield/MatchfieldCreation.java | 9 +++++++++ .../matchfield/MatchfieldCreationTest.java | 16 ++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 src/main/java/de/tims/fleetstorm/matchfield/MatchfieldCreation.java create mode 100644 src/test/java/de/tims/fleetstorm/matchfield/MatchfieldCreationTest.java diff --git a/src/main/java/de/tims/fleetstorm/matchfield/MatchfieldCreation.java b/src/main/java/de/tims/fleetstorm/matchfield/MatchfieldCreation.java new file mode 100644 index 0000000..f735fd9 --- /dev/null +++ b/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[][] {}; + } + +} diff --git a/src/test/java/de/tims/fleetstorm/matchfield/MatchfieldCreationTest.java b/src/test/java/de/tims/fleetstorm/matchfield/MatchfieldCreationTest.java new file mode 100644 index 0000000..65e47fa --- /dev/null +++ b/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); + } +}