1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

[CI skip] Fixed Unit Test

This commit is contained in:
TheBusyBiscuit 2021-12-21 10:32:39 +01:00
parent 230ea07ca1
commit 8229935b3a
3 changed files with 18 additions and 1 deletions

View File

@ -36,7 +36,9 @@
* Added a ton of wiki links to the guide
* (API) Added "GRAVITY_AFFECTED_BLOCKS" tag
* (API) Added "Biome-Maps" for more in-depth GEO resource configuration (developers only for now)
* (API) Added some utility methods for Biome-Maps
* Added support for 1.18
* Added Talisman of Farmer
#### Changes
* GEO resource distributions have been slightly adjusted
@ -45,6 +47,7 @@
#### Fixes
* Crimson and Warped Pressure Plates are now properly recognized as pressure plates
* Fixed #3336
* (API) Fixed `Parachute` constructor parameter being ignored
## Release Candidate 29 (07 Nov 2021)

View File

@ -65,7 +65,7 @@ Well, we asked some users on our [Discord server](#headphones-discord) to send u
| *Screenshot provided by GalaxyKat11#3816* | *Screenshot provided by TamThan#7987* | *Screenshot provided by Kilaruna#4981* |
## :headphones: Discord
You can find Slimefun's community on Discord and connect with **over 6000** users of this plugin from all over the world.<br>
You can find Slimefun's community on Discord and connect with **over 7000** users of this plugin from all over the world.<br>
Click the badge down below to join the server for suggestions/questions or other discussions about this plugin.<br>
We are also hosting a community event every so often, join us to find out more.<br>
**Important: We don't accept bug reports on discord, please use our [Issue Tracker](https://github.com/Slimefun/Slimefun4/issues) to submit bug reports!**

View File

@ -17,12 +17,16 @@ import javax.annotation.ParametersAreNonnullByDefault;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import be.seeseemelk.mockbukkit.MockBukkit;
/**
* Your friendly neighbourhood spellcheck.
* Brought to you by our Discord bot "@WalshBot".
@ -35,6 +39,16 @@ class TestSlimefunSpelling {
private final Pattern incorrectSpelling = Pattern.compile("[Ss]lime(?:F|( [Ff]))un");
@BeforeAll
public static void load() {
MockBukkit.mock();
}
@AfterAll
public static void unload() {
MockBukkit.unmock();
}
@ParameterizedTest
@ParametersAreNonnullByDefault
@MethodSource("getAllLanguageFiles")