From 88a3adc26392db98add71ec1fd51e9977816cb81 Mon Sep 17 00:00:00 2001 From: Toshiya Kobayashi Date: Tue, 4 Jun 2024 16:14:33 +0900 Subject: [PATCH] [incubator-kie-drools-5920] [new-parser] Strict annotation parsing (#5976) - Skip the test for new parser --- .../mvel/integrationtests/StrictAnnotationTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StrictAnnotationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StrictAnnotationTest.java index cc3a605be16..602b8ead083 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StrictAnnotationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StrictAnnotationTest.java @@ -32,10 +32,13 @@ import org.drools.core.common.DefaultEventHandle; import org.drools.core.impl.RuleBaseFactory; +import org.drools.drl.parser.DrlParser; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; import org.drools.testcoverage.common.util.KieBaseUtil; import org.drools.testcoverage.common.util.KieUtil; import org.drools.testcoverage.common.util.TestParametersUtil; +import org.junit.Assume; +import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; @@ -70,6 +73,12 @@ public static Collection getParameters() { return TestParametersUtil.getKieBaseCloudConfigurations(false); } + @BeforeClass + public static void checkSkip() { + // if new antlr4 parser is enabled, skip this test, because DRL6_STRICT is not supported + Assume.assumeFalse(DrlParser.ANTLR4_PARSER_ENABLED); + } + @Test public void testUnknownAnnotation() { String str =