Search in sources :

Example 11 with PackageDescrBuilder

use of org.drools.drl.ast.dsl.PackageDescrBuilder in project drools by kiegroup.

the class KiePMMLDescrRhsFactoryTest method setUp.

@Before
public void setUp() throws Exception {
    PackageDescrBuilder builder = DescrFactory.newPackage().name(PACKAGE_NAME);
    ruleBuilder = builder.newRule().name(CURRENT_RULE);
    assertEquals(CURRENT_RULE, ruleBuilder.getDescr().getName());
}
Also used : PackageDescrBuilder(org.drools.drl.ast.dsl.PackageDescrBuilder) Before(org.junit.Before)

Aggregations

PackageDescrBuilder (org.drools.drl.ast.dsl.PackageDescrBuilder)11 Test (org.junit.Test)7 PackageDescr (org.drools.drl.ast.descr.PackageDescr)4 DrlDumper (org.drools.mvel.DrlDumper)4 ByteArrayOutputStream (java.io.ByteArrayOutputStream)3 ObjectOutput (java.io.ObjectOutput)3 ObjectOutputStream (java.io.ObjectOutputStream)3 ByteArrayInputStream (java.io.ByteArrayInputStream)2 IOException (java.io.IOException)2 ObjectInput (java.io.ObjectInput)2 ObjectInputStream (java.io.ObjectInputStream)2 RuleDescrBuilder (org.drools.drl.ast.dsl.RuleDescrBuilder)2 InternalKnowledgeBase (org.drools.kiesession.rulebase.InternalKnowledgeBase)2 Before (org.junit.Before)2 OutputStream (java.io.OutputStream)1 ArrayList (java.util.ArrayList)1 LinkedList (java.util.LinkedList)1 List (java.util.List)1 Map (java.util.Map)1 SimplePredicate (org.dmg.pmml.SimplePredicate)1