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 =