From c01f9b8b1fcf5361ac466b5e99bc025f55e75a17 Mon Sep 17 00:00:00 2001 From: "Reichenbach, Michael" Date: Fri, 21 Jan 2022 08:27:15 +0100 Subject: [PATCH] feat: add basic core module structure --- core/build.gradle | 8 ++++++++ .../java/net/silthus/template/core/Empty.java | 6 ++++++ .../net/silthus/template/core/CoreTests.java | 11 ++++++++++ .../test/resources/junit-platform.properties | 20 +++++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 core/build.gradle create mode 100644 core/src/main/java/net/silthus/template/core/Empty.java create mode 100644 core/src/test/java/net/silthus/template/core/CoreTests.java create mode 100644 core/src/test/resources/junit-platform.properties diff --git a/core/build.gradle b/core/build.gradle new file mode 100644 index 0000000..d4517f9 --- /dev/null +++ b/core/build.gradle @@ -0,0 +1,8 @@ + +dependencies { + api project(':api') + + testImplementation(testFixtures(project(":api"))) + + testFixturesImplementation(testFixtures(project(':api'))) +} \ No newline at end of file diff --git a/core/src/main/java/net/silthus/template/core/Empty.java b/core/src/main/java/net/silthus/template/core/Empty.java new file mode 100644 index 0000000..95b93b0 --- /dev/null +++ b/core/src/main/java/net/silthus/template/core/Empty.java @@ -0,0 +1,6 @@ +package net.silthus.template.core; + +public class Empty { + + // TODO: add your use-cases and business rules into core +} diff --git a/core/src/test/java/net/silthus/template/core/CoreTests.java b/core/src/test/java/net/silthus/template/core/CoreTests.java new file mode 100644 index 0000000..8cb4271 --- /dev/null +++ b/core/src/test/java/net/silthus/template/core/CoreTests.java @@ -0,0 +1,11 @@ +package net.silthus.template.core; + +import org.junit.jupiter.api.Test; + +class CoreTests { + + @Test + void given_empty_core_then_tests_are_executable() { + // TODO: add your use-cases and business rules into core + } +} diff --git a/core/src/test/resources/junit-platform.properties b/core/src/test/resources/junit-platform.properties new file mode 100644 index 0000000..b7fe0ed --- /dev/null +++ b/core/src/test/resources/junit-platform.properties @@ -0,0 +1,20 @@ +# +# sChat, a Supercharged Minecraft Chat Plugin +# Copyright (C) Silthus +# Copyright (C) sChat team and contributors +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +junit.jupiter.displayname.generator.default = org.junit.jupiter.api.DisplayNameGenerator$ReplaceUnderscores \ No newline at end of file