Update message and javadoc in base tests
This commit is contained in:
parent
e65c3e2662
commit
4a8d58d6cc
2 changed files with 7 additions and 1 deletions
|
@ -154,7 +154,7 @@ public class MiscellaneousTest {
|
||||||
throwableCaught = false;
|
throwableCaught = false;
|
||||||
|
|
||||||
Miscellaneous.executeSafely(() -> {
|
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");
|
}, "MiscellaneousTest#testExecuteSafely0");
|
||||||
|
|
||||||
assertFalse(throwableCaught, "Event was triggered");
|
assertFalse(throwableCaught, "Event was triggered");
|
||||||
|
|
|
@ -46,11 +46,17 @@ class PlaceholderEngineTest {
|
||||||
*/
|
*/
|
||||||
private static final UnitLogger logger = new UnitLogger(PlaceholderEngineTest.class);
|
private static final UnitLogger logger = new UnitLogger(PlaceholderEngineTest.class);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new {@link PlaceholderEngine} instance before each test.
|
||||||
|
*/
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
void createInstance() {
|
void createInstance() {
|
||||||
new PlaceholderEngine();
|
new PlaceholderEngine();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the {@link PlaceholderEngine}#{@code instance} to {@code null} after each test.
|
||||||
|
*/
|
||||||
@AfterEach
|
@AfterEach
|
||||||
void clearInstance() {
|
void clearInstance() {
|
||||||
Reflect.onClass(PlaceholderEngine.class).call("clearInstance");
|
Reflect.onClass(PlaceholderEngine.class).call("clearInstance");
|
||||||
|
|
Loading…
Reference in a new issue