This is an automated email from the ASF dual-hosted git repository.

mariofusco pushed a commit to branch dev-new-parser
in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git


The following commit(s) were added to refs/heads/dev-new-parser by this push:
     new e79e36ea0b [incubator-kie-drools-5920] [new-parser] Strict annotation 
parsing (#5976)
e79e36ea0b is described below

commit e79e36ea0be7146048f0a7da02621481dc0def9c
Author: Toshiya Kobayashi <[email protected]>
AuthorDate: Tue Jun 4 16:14:33 2024 +0900

    [incubator-kie-drools-5920] [new-parser] Strict annotation parsing (#5976)
    
    - Skip the test for new parser
---
 .../org/drools/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 cc3a605be1..602b8ead08 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 java.util.Properties;
 
 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 class StrictAnnotationTest {
         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 =


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to