39813982398339843985398639873988398939903991
m1.addLhsItem( fp ); m1.addRhsItem( auf1 ); m1.addRhsItem( auf2 ); m1.name = "r1"; m1.addRow( new String[]{ null, null } ); final String expected1 = "rule \"r1_0\"\n" + " dialect \"mvel\"\n" + " when\n" + " p1 : Smurf()\n" +
40004001400240034004400540064007400840094010
m2.addLhsItem( fp ); m2.addRhsItem( auf1 ); m2.addRhsItem( auf2 ); m2.name = "r2"; m2.addRow( new String[]{ " ", "35" } ); final String expected2 = "rule \"r2_0\"\n" + " dialect \"mvel\"\n" + " when\n" + " p1 : Smurf()\n" +
40224023402440254026402740284029403040314032
m3.addLhsItem( fp ); m3.addRhsItem( auf1 ); m3.addRhsItem( auf2 ); m3.name = "r3"; m3.addRow( new String[]{ "", null } ); final String expected3 = "rule \"r3_0\"\n" + " dialect \"mvel\"\n" + " when\n" + " p1 : Smurf()\n" +
40414042404340444045404640474048404940504051
m4.addLhsItem( fp ); m4.addRhsItem( auf1 ); m4.addRhsItem( auf2 ); m4.name = "r4"; m4.addRow( new String[]{ "", "35" } ); final String expected4 = "rule \"r4_0\"\n" + " dialect \"mvel\"\n" + " when\n" + " p1 : Smurf()\n" +
40814082408340844085408640874088408940904091
41004101410241034104410541064107410841094110
m2.addLhsItem( fp ); m2.addRhsItem( auf1 ); m2.addRhsItem( auf2 ); m2.name = "r2"; m2.addRow( new String[]{ "\" \"", "35" } ); final String expected2 = "rule \"r2_0\"\n" + " dialect \"mvel\"\n" + " when\n" + " p1 : Smurf()\n" +
41234124412541264127412841294130413141324133
m3.addLhsItem( fp ); m3.addRhsItem( auf1 ); m3.addRhsItem( auf2 ); m3.name = "r3"; m3.addRow( new String[]{ "\"\"", null } ); final String expected3 = "rule \"r3_0\"\n" + " dialect \"mvel\"\n" + " when\n" + " p1 : Smurf()\n" +
41454146414741484149415041514152415341544155
m4.addLhsItem( fp ); m4.addRhsItem( auf1 ); m4.addRhsItem( auf2 ); m4.name = "r4"; m4.addRow( new String[]{ "\"\"", "35" } ); final String expected4 = "rule \"r4_0\"\n" + " dialect \"mvel\"\n" + " when\n" + " p1 : Smurf()\n" +
29932994299529962997299829993000300130023003
+ "f0.setField1(\"foo\");\n" + "f0.setField2(\"bar\");\n" + "insert(f0);\n" + "end"; m.addRow( new String[]{ "foo", "bar" } ); checkMarshall( expected, m ); }
30323033303430353036303730383039304030413042
+ "then\n" + "Present f0 = new Present();\n" + "insert(f0);\n" + "end"; m.addRow( new String[]{ null, null } ); checkMarshall( expected, m ); }