21842185218621872188218921902191219221932194
"when\n" + "Person( field1 == \"v1\" || field2 == \"v2\", field3 == \"v3\" || field4 == \"v4\", field5 == \"v5\" || field6 == \"v6\" )\n" + "then\n" + "end\n"; m.addRow( new String[]{ "v1", "v3", "v5" } ); checkMarshall( expected, m ); }
22602261226222632264226522662267226822692270
"when\n" + "Person( field1 == \"v1\", field3 == \"v3\", field5 == \"v5\" )\n" + "then\n" + "end\n"; m.addRow( new String[]{ null, null, null } ); checkMarshall( expected, m ); }
23362337233823392340234123422343234423452346
"when\n" + "Person( field1 == \"v1\" || field2 == \"v2\", field3 == \"v3\" || field4 == \"v4\", field5 == \"v5\" || field6 == \"v6\" )\n" + "then\n" + "end\n"; m.addRow( new String[]{ "v2", "v4", "v6" } ); checkMarshall( expected, m ); }
23742375237623772378237923802381238223832384
"when\n" + "Person( field1 == \"foo\" || == \"bar\" )\n" + "then\n" + "end\n"; m.addRow( new String[]{ "foo", "bar" } ); checkMarshall( expected, m ); }
24122413241424152416241724182419242024212422
"when\n" + "Person( field1 == \"foo\" )\n" + "then\n" + "end\n"; m.addRow( new String[]{ "foo", null } ); checkMarshall( expected, m ); }
24502451245224532454245524562457245824592460
"when\n" + "Person( field1 == \"bar\" )\n" + "then\n" + "end\n"; m.addRow( new String[]{ null, "bar" } ); checkMarshall( expected, m ); }
24832484248524862487248824892490249124922493
+ "when\n" + "java.util.List( ) from collect ( Person( field1 == \"foo\" ) ) \n" + "then\n" + "end"; m.addRow( new String[]{ "foo" } ); checkMarshall( expected, m ); }
25222523252425252526252725282529253025312532
+ "when\n" + "java.util.List( size > 1 ) from collect ( Person( field1 == \"foo\" ) ) \n" + "then\n" + "end"; m.addRow( new String[]{ "1", "foo" } ); checkMarshall( expected, m ); }
25612562256325642565256625672568256925702571
+ "when\n" + "java.util.List( size > 1 ) from collect ( Person( ) )\n" + "then\n" + "end"; m.addRow( new String[]{ "1", null } ); checkMarshall( expected, m ); }
26002601260226032604260526062607260826092610
+ "when\n" + "java.util.List() from collect ( Person( field1 == \"foo\" ) )" + "then\n" + "end"; m.addRow( new String[]{ null, "foo" } ); checkMarshall( expected, m ); }