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:
parent
230ea07ca1
commit
8229935b3a
@ -36,7 +36,9 @@
|
|||||||
* Added a ton of wiki links to the guide
|
* Added a ton of wiki links to the guide
|
||||||
* (API) Added "GRAVITY_AFFECTED_BLOCKS" tag
|
* (API) Added "GRAVITY_AFFECTED_BLOCKS" tag
|
||||||
* (API) Added "Biome-Maps" for more in-depth GEO resource configuration (developers only for now)
|
* (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 support for 1.18
|
||||||
|
* Added Talisman of Farmer
|
||||||
|
|
||||||
#### Changes
|
#### Changes
|
||||||
* GEO resource distributions have been slightly adjusted
|
* GEO resource distributions have been slightly adjusted
|
||||||
@ -45,6 +47,7 @@
|
|||||||
#### Fixes
|
#### Fixes
|
||||||
* Crimson and Warped Pressure Plates are now properly recognized as pressure plates
|
* Crimson and Warped Pressure Plates are now properly recognized as pressure plates
|
||||||
* Fixed #3336
|
* Fixed #3336
|
||||||
|
* (API) Fixed `Parachute` constructor parameter being ignored
|
||||||
|
|
||||||
## Release Candidate 29 (07 Nov 2021)
|
## Release Candidate 29 (07 Nov 2021)
|
||||||
|
|
||||||
|
@ -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* |
|
| *Screenshot provided by GalaxyKat11#3816* | *Screenshot provided by TamThan#7987* | *Screenshot provided by Kilaruna#4981* |
|
||||||
|
|
||||||
## :headphones: Discord
|
## :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>
|
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>
|
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!**
|
**Important: We don't accept bug reports on discord, please use our [Issue Tracker](https://github.com/Slimefun/Slimefun4/issues) to submit bug reports!**
|
||||||
|
@ -17,12 +17,16 @@ import javax.annotation.ParametersAreNonnullByDefault;
|
|||||||
|
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
import org.bukkit.configuration.file.YamlConfiguration;
|
||||||
|
import org.junit.jupiter.api.AfterAll;
|
||||||
import org.junit.jupiter.api.Assertions;
|
import org.junit.jupiter.api.Assertions;
|
||||||
|
import org.junit.jupiter.api.BeforeAll;
|
||||||
import org.junit.jupiter.api.DisplayName;
|
import org.junit.jupiter.api.DisplayName;
|
||||||
import org.junit.jupiter.params.ParameterizedTest;
|
import org.junit.jupiter.params.ParameterizedTest;
|
||||||
import org.junit.jupiter.params.provider.Arguments;
|
import org.junit.jupiter.params.provider.Arguments;
|
||||||
import org.junit.jupiter.params.provider.MethodSource;
|
import org.junit.jupiter.params.provider.MethodSource;
|
||||||
|
|
||||||
|
import be.seeseemelk.mockbukkit.MockBukkit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Your friendly neighbourhood spellcheck.
|
* Your friendly neighbourhood spellcheck.
|
||||||
* Brought to you by our Discord bot "@WalshBot".
|
* 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");
|
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
|
@ParameterizedTest
|
||||||
@ParametersAreNonnullByDefault
|
@ParametersAreNonnullByDefault
|
||||||
@MethodSource("getAllLanguageFiles")
|
@MethodSource("getAllLanguageFiles")
|
||||||
|
Loading…
Reference in New Issue
Block a user