tkobayas commented on issue #6897:
URL: https://github.com/apache/incubator-kie/issues/6897#issuecomment-5290951625
DRL10 doesn't support `&&` for pattern connection. The test case needs to be
fixed:
```
diff --git
a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/SubnetworkSharingExistsTest.java
b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/SubnetworkSharingExistsTest.java
index c3dc74eb595..4459a1f2063 100644
---
a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/SubnetworkSharingExistsTest.java
+++
b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/SubnetworkSharingExistsTest.java
@@ -73,7 +73,7 @@ public class SubnetworkSharingExistsTest extends
BaseModelTest {
" TextField(name == \"field1\" && value == \"A\")\n"
+
" exists(\n" +
" TextField(name == \"field3\" && value ==
\"1\")\n" +
- " && TextField(name == \"field2\" && value ==
\"20\")\n" +
+ " and TextField(name == \"field2\" && value ==
\"20\")\n" +
" )\n" +
" then\n" +
" end\n" +
@@ -84,8 +84,8 @@ public class SubnetworkSharingExistsTest extends
BaseModelTest {
" $outputField: TextField(name ==
\"outputField\")\n" +
" exists(\n" +
" TextField(name == \"field1\" && value ==
\"A\")\n" +
- " && TextField(name == \"field3\" && value ==
\"1\")\n" +
- " && TextField(name == \"field2\" && value ==
\"20\")\n" +
+ " and TextField(name == \"field3\" && value ==
\"1\")\n" +
+ " and TextField(name == \"field2\" && value ==
\"20\")\n" +
" )\n" +
" then\n" +
" end\n";
```
--
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]