Added MockBucket

Added MockBucket to allow for new Tests to be written for each Class planned to be overhauled
This commit is contained in:
Daniel 2022-09-15 17:02:07 -04:00
parent cd43b51329
commit 4b8b90d6e8
4 changed files with 19 additions and 16 deletions

11
pom.xml
View File

@ -40,6 +40,11 @@
<url>https://maven.enginehub.org/repo/</url>
</repository>
<repository>
<id>papermc</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
</repositories>
<dependencyManagement>
@ -130,6 +135,12 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.seeseemelk</groupId>
<artifactId>MockBukkit-v1.19</artifactId>
<version>2.29.0</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -0,0 +1,4 @@
package de.butzlabben.world.data;
public class WorldDatabase {
}

View File

@ -0,0 +1,4 @@
package de.butzlabben.world.data;
public class TestWorldDatabase {
}

View File

@ -1,16 +0,0 @@
package de.butzlabben.world.wrapper;
import org.bukkit.WorldCreator;
import org.junit.Test;
import static org.junit.Assert.assertNotNull;
public class GeneratorSettingsTest {
@Test
public void asWorldCreator() {
GeneratorSettings settings = new GeneratorSettings();
WorldCreator creator = settings.asWorldCreator("test");
assertNotNull(creator);
}
}