Skip to content

Commit

Permalink
[incubator-kie-drools-5920] [new-parser] Strict annotation parsing
Browse files Browse the repository at this point in the history
- Skip the test for new parser
  • Loading branch information
tkobayas committed May 31, 2024
1 parent 8eee229 commit 95c6977
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -70,6 +73,12 @@ public static Collection<Object[]> 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 =
Expand Down

0 comments on commit 95c6977

Please sign in to comment.