From 4a8d58d6cc1fe15fa3cfa1faaabe1ad04d4d5c54 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 13 Jul 2024 00:08:16 +0200 Subject: [PATCH] Update message and javadoc in base tests --- .../sosengine/base/srctests/utility/MiscellaneousTest.java | 2 +- .../base/srctests/utility/PlaceholderEngineTest.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/base/src/test/java/de/staropensource/sosengine/base/srctests/utility/MiscellaneousTest.java b/base/src/test/java/de/staropensource/sosengine/base/srctests/utility/MiscellaneousTest.java index 5eedab4..08a0351 100644 --- a/base/src/test/java/de/staropensource/sosengine/base/srctests/utility/MiscellaneousTest.java +++ b/base/src/test/java/de/staropensource/sosengine/base/srctests/utility/MiscellaneousTest.java @@ -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"); diff --git a/base/src/test/java/de/staropensource/sosengine/base/srctests/utility/PlaceholderEngineTest.java b/base/src/test/java/de/staropensource/sosengine/base/srctests/utility/PlaceholderEngineTest.java index b5c9c91..fd7029e 100644 --- a/base/src/test/java/de/staropensource/sosengine/base/srctests/utility/PlaceholderEngineTest.java +++ b/base/src/test/java/de/staropensource/sosengine/base/srctests/utility/PlaceholderEngineTest.java @@ -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");