use of org.drools.compiler.lang.DrlDumper in project drools by kiegroup.
the class DescrBuilderTest method testDumperPositional.
@Test
public void testDumperPositional() {
PackageDescr pkg = DescrFactory.newPackage().name("org.test").newRule().name("org.test").lhs().pattern().type("Integer").constraint("this > 10", true).constraint("this > 11", true).constraint("this > 12", false).constraint("this > 13", false).end().end().rhs("").end().end().getDescr();
String drl = new DrlDumper().dump(pkg);
assertTrue(drl.contains("Integer( this > 10, this > 11; this > 12, this > 13 )"));
}
Aggregations