Update message and javadoc in base tests

This commit is contained in:
JeremyStar™ 2024-07-13 00:08:16 +02:00
parent e65c3e2662
commit 4a8d58d6cc
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
2 changed files with 7 additions and 1 deletions

View file

@ -154,7 +154,7 @@ public class MiscellaneousTest {
throwableCaught = false;
Miscellaneous.executeSafely(() -> {
System.out.println("You can safely ignore this (this comes from MiscellaneousTest#testExecuteSafely0)");
System.out.println("You can safely ignore this message (this comes from MiscellaneousTest#testExecuteSafely0)");
}, "MiscellaneousTest#testExecuteSafely0");
assertFalse(throwableCaught, "Event was triggered");

View file

@ -46,11 +46,17 @@ class PlaceholderEngineTest {
*/
private static final UnitLogger logger = new UnitLogger(PlaceholderEngineTest.class);
/**
* Creates a new {@link PlaceholderEngine} instance before each test.
*/
@BeforeEach
void createInstance() {
new PlaceholderEngine();
}
/**
* Sets the {@link PlaceholderEngine}#{@code instance} to {@code null} after each test.
*/
@AfterEach
void clearInstance() {
Reflect.onClass(PlaceholderEngine.class).call("clearInstance");