Go to file
Christian Koop 404a94c307
Move from MockBukkit to Mockito in automated tests
MockBukkit is not able to mock all of Bukkit's API
and broke with a change in PaperMC causing all our
current tests to fail. It is also version dependant.

But with Mockito you have to do everything manually right now.
No helping functionality (like creating a new mock player which automatically
will be returned in `Bukkit#getOnlinePlayers()`)

I took this opportunity to learn a bit about Mocking in Bukkit
and decided on Mockito.
It looks like we could easily write our own MockBukkit
alternative in the future.

I am not really happy how `Mockito#verify` works tho.
I find it annoying not to be able to directly assert
on the calls made to a method.
You have to create an InOrder instance first for the
mock and in the end verify with `Mockito#times(0)`/`Mockito#never()`
and `Mockito#any()` for each argument a method takes, to assert a total of n calls.
2022-11-15 22:49:09 +01:00
.github Add full support for Minecraft 1.19.0, 1.19.1 and 1.19.2 2022-08-28 18:43:20 +02:00
Compatibility Move from MockBukkit to Mockito in automated tests 2022-11-15 22:49:09 +01:00
Core Move from MockBukkit to Mockito in automated tests 2022-11-15 22:49:09 +01:00
NMS Remove overloading WorldCore#getSpawner(CreatureSpawner) 2022-08-28 19:19:48 +02:00
.editorconfig Update EditorConfig [DEV-2] 2021-10-30 14:10:22 +02:00
.gitignore Add dependencies for unit tests 2021-10-30 14:53:23 +02:00
LICENSE Update pom.xml files and project structure 2021-07-08 15:37:37 +02:00
pom.xml Move from MockBukkit to Mockito in automated tests 2022-11-15 22:49:09 +01:00
README.md Dependabot, FUNDING, README 2021-07-08 15:37:37 +02:00

SongodaCore

An elaborate multi functional general Spigot plugin compatibility core and general use API.

Discord Patreon
Build Latest version Quality Gate Status GitHub last commit

Maven

Repository

<repository>
    <id>songoda-public</id>
    <url>https://repo.songoda.com/repository/public/</url>
</repository>

Artifact

<dependency>
  <groupId>com.songoda</groupId>
  <artifactId>SongodaCore</artifactId>
  <version>VERSION</version>
</dependency>

Gradle

Repository

repositories {
    maven {
        url 'https://repo.songoda.com/repository/public/'
    }
}

Artifact

dependencies {
    compileOnly 'com.songoda:SongodaCore:VERSION'
}