Skip to content

Commit

Permalink
feat: add basic core module structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Silthus committed Jan 21, 2022
1 parent 6230318 commit c01f9b8
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

dependencies {
api project(':api')

testImplementation(testFixtures(project(":api")))

testFixturesImplementation(testFixtures(project(':api')))
}
6 changes: 6 additions & 0 deletions core/src/main/java/net/silthus/template/core/Empty.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package net.silthus.template.core;

public class Empty {

// TODO: add your use-cases and business rules into core
}
11 changes: 11 additions & 0 deletions core/src/test/java/net/silthus/template/core/CoreTests.java
Original file line number Diff line number Diff line change
@@ -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
}
}
20 changes: 20 additions & 0 deletions core/src/test/resources/junit-platform.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# sChat, a Supercharged Minecraft Chat Plugin
# Copyright (C) Silthus <https://www.github.com/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 <https://www.gnu.org/licenses/>.
#

junit.jupiter.displayname.generator.default = org.junit.jupiter.api.DisplayNameGenerator$ReplaceUnderscores

0 comments on commit c01f9b8

Please sign in to comment.