33023303330433053306330733083309331033113312
+ "$p : Person( field1 == \"foo\" )\n" + "then\n" + "$p.setField1(\"bar\");\n" + "end"; m.addRow( new String[]{ "foo", "bar" } ); checkMarshall( expected, m ); }
33423343334433453346334733483349335033513352
" setField1(\"foo\"),\n" + " setField2(\"bar\")\n" + " }\n" + "end"; m.addRow( new String[]{ "foo", "bar" } ); checkMarshall( expected, m ); }
33813382338333843385338633873388338933903391
" modify( $p ) {\n" + " setField1(\"foo\")\n" + " }\n" + "end"; m.addRow( new String[]{ "foo", null } ); checkMarshall( expected, m ); }
34203421342234233424342534263427342834293430
" modify( $p ) {\n" + " setField2(\"bar\")\n" + " }\n" + "end"; m.addRow( new String[]{ null, "bar" } ); checkMarshall( expected, m ); }
34603461346234633464346534663467346834693470
" setField1(\"foo\"),\n" + " setField2(\"bar\")\n" + " }\n" + "end"; m.addRow( new String[]{ "foo" } ); checkMarshall( expected, m ); }
34993500350135023503350435053506350735083509
" modify( $p ) {\n" + " setField2(\"bar\")\n" + " }\n" + "end"; m.addRow( new String[]{ null } ); checkMarshall( expected, m ); }
35393540354135423543354435453546354735483549
" setField1(\"foo\"),\n" + " setField2(\"bar\")\n" + " }\n" + "end"; m.addRow( new String[]{ "bar" } ); checkMarshall( expected, m ); }
35783579358035813582358335843585358635873588
" modify( $p ) {\n" + " setField1(\"foo\")\n" + " }\n" + "end"; m.addRow( new String[]{ null } ); checkMarshall( expected, m ); }
36263627362836293630363136323633363436353636
" setField2(\"v2\"),\n" + " setField3(\"v3\")\n" + " }\n" + "end"; m.addRow( new String[]{ "v1", "v2", "v3" } ); checkMarshall( expected, m ); }
36733674367536763677367836793680368136823683
" setField2(\"v2\"),\n" + " setField3(\"v3\")\n" + " }\n" + "end"; m.addRow( new String[]{ null, "v2", "v3" } ); checkMarshall( expected, m ); }