From 6939e9c4af7ad76ab425c77b9c32e54b8191d549 Mon Sep 17 00:00:00 2001 From: danielb Date: Thu, 23 May 2024 16:10:26 +0000 Subject: [PATCH] prepd tests --- .gitlab-ci.yml | 4 +--- .../WorldSystem/data/AbstractSqlLiteDatabase.java | 10 ++++++++++ .../butzlabben/WorldSystem/data/MockDatabase.java | 4 ++++ .../data/TestAbstractSqlLiteDatabase.java | 14 ++++++++++++++ 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 src/main/java/de/butzlabben/WorldSystem/data/AbstractSqlLiteDatabase.java create mode 100644 src/test/java/de/butzlabben/WorldSystem/data/MockDatabase.java create mode 100644 src/test/java/de/butzlabben/WorldSystem/data/TestAbstractSqlLiteDatabase.java diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 67edac6..714b2c8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,4 @@ build: test: stage: test script: - - ./gradlew check -after_script: - - echo "End CI" \ No newline at end of file + - ./gradlew test \ No newline at end of file diff --git a/src/main/java/de/butzlabben/WorldSystem/data/AbstractSqlLiteDatabase.java b/src/main/java/de/butzlabben/WorldSystem/data/AbstractSqlLiteDatabase.java new file mode 100644 index 0000000..86bcacb --- /dev/null +++ b/src/main/java/de/butzlabben/WorldSystem/data/AbstractSqlLiteDatabase.java @@ -0,0 +1,10 @@ +package de.butzlabben.WorldSystem.data; + +public abstract class AbstractSqlLiteDatabase { + + public AbstractSqlLiteDatabase() { + + } + + +} diff --git a/src/test/java/de/butzlabben/WorldSystem/data/MockDatabase.java b/src/test/java/de/butzlabben/WorldSystem/data/MockDatabase.java new file mode 100644 index 0000000..dd89978 --- /dev/null +++ b/src/test/java/de/butzlabben/WorldSystem/data/MockDatabase.java @@ -0,0 +1,4 @@ +package de.butzlabben.WorldSystem.data; + +public class MockDatabase extends AbstractSqlLiteDatabase { +} diff --git a/src/test/java/de/butzlabben/WorldSystem/data/TestAbstractSqlLiteDatabase.java b/src/test/java/de/butzlabben/WorldSystem/data/TestAbstractSqlLiteDatabase.java new file mode 100644 index 0000000..5fca3c3 --- /dev/null +++ b/src/test/java/de/butzlabben/WorldSystem/data/TestAbstractSqlLiteDatabase.java @@ -0,0 +1,14 @@ +package de.butzlabben.WorldSystem.data; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +public class TestAbstractSqlLiteDatabase { + + @Test + public void testPrintMessage() { + System.out.println("Inside testPrintMessage()"); + assertEquals("", ""); + } +}