From 0514329556b190adc3bf8f13aa917204a5427e94 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 28 Jun 2024 02:17:53 +0200 Subject: [PATCH] Update test javadoc --- .../sosengine/base/srctests/EngineConfigurationTest.java | 2 +- .../sosengine/base/srctests/utility/MiscellaneousTest.java | 5 ++++- .../sosengine/slf4j_compat/Slf4jCompatibilitySubsystem.java | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/base/src/test/java/de/staropensource/sosengine/base/srctests/EngineConfigurationTest.java b/base/src/test/java/de/staropensource/sosengine/base/srctests/EngineConfigurationTest.java index 7f69126..8086f65 100644 --- a/base/src/test/java/de/staropensource/sosengine/base/srctests/EngineConfigurationTest.java +++ b/base/src/test/java/de/staropensource/sosengine/base/srctests/EngineConfigurationTest.java @@ -59,7 +59,7 @@ class EngineConfigurationTest { } /** - * Sets the {@link EngineConfiguration} {@code instance} to {@code null} after each test. + * Sets the {@link EngineConfiguration}#{@code instance} to {@code null} after each test. */ @AfterEach void clearClass() { 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 99c1d63..5eedab4 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 @@ -57,8 +57,11 @@ public class MiscellaneousTest { */ private static boolean throwableCaught; + /** + * Sets the {@link EngineConfiguration}#{@code instance} to {@code null} after each test. + */ @AfterEach - void clearConfigurationInstance() { + void clearConfiguration() { // Only does something if 'EngineConfiguration#instance' is set, only applies to 'testExecuteSafely1' Reflect.onClass(EngineConfiguration.class).call("clearInstance"); } diff --git a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/Slf4jCompatibilitySubsystem.java b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/Slf4jCompatibilitySubsystem.java index 24e9f8f..73d172d 100644 --- a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/Slf4jCompatibilitySubsystem.java +++ b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/Slf4jCompatibilitySubsystem.java @@ -20,10 +20,10 @@ package de.staropensource.sosengine.slf4j_compat; import de.staropensource.sosengine.base.classes.SubsystemMainClass; +import de.staropensource.sosengine.base.classes.logging.LogIssuer; import de.staropensource.sosengine.base.events.LogEvent; import de.staropensource.sosengine.base.logging.LoggerInstance; import de.staropensource.sosengine.base.types.CodePart; -import de.staropensource.sosengine.base.classes.logging.LogIssuer; import lombok.Getter; import org.slf4j.LoggerFactory;