From 4e31dd9040245f6634a0943a2e1c4ec923d191aa Mon Sep 17 00:00:00 2001 From: querdenker2k Date: Tue, 21 Feb 2023 21:41:11 +0100 Subject: [PATCH] add logging for test --- .../internal/codegenerator/JRuleItemClassGeneratorTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/org/openhab/binding/jrule/internal/codegenerator/JRuleItemClassGeneratorTest.java b/src/test/java/org/openhab/binding/jrule/internal/codegenerator/JRuleItemClassGeneratorTest.java index cf2aed2c..010d1367 100644 --- a/src/test/java/org/openhab/binding/jrule/internal/codegenerator/JRuleItemClassGeneratorTest.java +++ b/src/test/java/org/openhab/binding/jrule/internal/codegenerator/JRuleItemClassGeneratorTest.java @@ -39,6 +39,7 @@ import org.openhab.automation.jrule.internal.compiler.JRuleCompiler; import org.openhab.automation.jrule.internal.handler.JRuleEventHandler; import org.openhab.automation.jrule.items.JRuleItemClassGenerator; +import org.openhab.automation.jrule.items.JRuleItemRegistry; import org.openhab.automation.jrule.test_utils.JRuleItemTestUtils; import org.openhab.core.items.GenericItem; import org.openhab.core.items.GroupItem; @@ -84,6 +85,8 @@ public void setup() { JRuleConfig config = new JRuleConfig(map); sourceFileGenerator = new JRuleItemClassGenerator(config); compiler = new JRuleCompiler(config); + + JRuleItemRegistry.clear(); } @BeforeEach