Skip to content

Commit

Permalink
[incubator-kie-drools-5920] [new-parser] Strict annotation parsing (a…
Browse files Browse the repository at this point in the history
…pache#5976)

- Skip the test for new parser
  • Loading branch information
tkobayas committed Jun 11, 2024
1 parent 1cae534 commit 88a3adc
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 88a3adc

Please sign in to comment.