diff --git a/base/src/main/java/de/staropensource/sosengine/base/utility/PlaceholderEngine.java b/base/src/main/java/de/staropensource/sosengine/base/utility/PlaceholderEngine.java index 2c4fb643..72d71e20 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/utility/PlaceholderEngine.java +++ b/base/src/main/java/de/staropensource/sosengine/base/utility/PlaceholderEngine.java @@ -20,10 +20,10 @@ package de.staropensource.sosengine.base.utility; import de.staropensource.sosengine.base.classes.Placeholder; +import de.staropensource.sosengine.base.classes.logging.LogIssuer; import de.staropensource.sosengine.base.data.placeholders.*; import de.staropensource.sosengine.base.logging.Logger; import de.staropensource.sosengine.base.types.CodePart; -import de.staropensource.sosengine.base.classes.logging.LogIssuer; import lombok.Getter; import org.jetbrains.annotations.NotNull; @@ -153,4 +153,13 @@ public final class PlaceholderEngine { public String process(@NotNull String text) { return process(text, new ArrayList<>()); } + + /** + * Clears {@code instance}. Used in unit tests. + * + * @since 1-alpha1 + */ + private static void clearInstance() { + instance = null; + } }