DimaSol opened a new issue, #6514:
URL: https://github.com/apache/incubator-kie-drools/issues/6514

   I've created the below test at OOPathTest class
   ```
   public class OOPathTest extends BaseModelTest {
       @ParameterizedTest
        @MethodSource("parameters")
       public void testOOPathUnknownBinding(RUN_TYPE runType) {
           final String str =
                   "import org.drools.model.codegen.execmodel.domain.*;\n" +
                   "global java.util.List list\n" +
                   "\n" +
                   "rule R when\n" +
                   " $man: Man( /wife/children[unknown > 10] )\n" +
                   "then\n" +
                   "  list.add( $man.getName() );\n" +
                   "end\n";
   
           getKieSession(runType, str);
       }
   ```
   
   Please note the ```unknown``` field for the wife’s children.
   This test passes for PATTERN_DSL while correctly fails for STANDARD_FROM_DRL 
as compilation should fail.
   I created this test after noticing that the kJar pipeline passed, even 
though I expected it to fail because of the undefined field.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to