use of org.kie.soup.project.datamodel.commons.oracle.PackageDataModelOracleImpl in project drools by kiegroup.
the class RuleModelDRLPersistenceExtensionsTest method unmarshalWithExtensions.
@Test
public void unmarshalWithExtensions() {
RuleModel ruleModel = RuleModelDRLPersistenceImpl.getInstance().unmarshal(DRL_RULE, Collections.emptyList(), new PackageDataModelOracleImpl(), Arrays.asList(new TestIActionPersistenceExtension()));
assertEquals(1, ruleModel.rhs.length);
IAction iAction = ruleModel.rhs[0];
assertTrue(iAction instanceof TestIAction);
}
use of org.kie.soup.project.datamodel.commons.oracle.PackageDataModelOracleImpl in project drools by kiegroup.
the class RuleModelDRLPersistenceExtensionsTest method unmarshalDSLWithoutExtensions.
@Test
public void unmarshalDSLWithoutExtensions() {
RuleModel ruleModel = RuleModelDRLPersistenceImpl.getInstance().unmarshalUsingDSL(DSL_RULE, Collections.emptyList(), new PackageDataModelOracleImpl());
assertEquals(1, ruleModel.rhs.length);
IAction iAction = ruleModel.rhs[0];
assertTrue(iAction instanceof FreeFormLine);
}
use of org.kie.soup.project.datamodel.commons.oracle.PackageDataModelOracleImpl in project drools by kiegroup.
the class RuleModelDRLPersistenceExtensionsTest method unmarshalWithoutExtensions.
@Test
public void unmarshalWithoutExtensions() {
RuleModel ruleModel = RuleModelDRLPersistenceImpl.getInstance().unmarshal(DRL_RULE, Collections.emptyList(), new PackageDataModelOracleImpl());
assertEquals(1, ruleModel.rhs.length);
IAction iAction = ruleModel.rhs[0];
assertTrue(iAction instanceof FreeFormLine);
}
use of org.kie.soup.project.datamodel.commons.oracle.PackageDataModelOracleImpl in project drools by kiegroup.
the class RuleModelDRLPersistenceExtensionsTest method unmarshalDSLWithExtensions.
@Test
public void unmarshalDSLWithExtensions() {
RuleModel ruleModel = RuleModelDRLPersistenceImpl.getInstance().unmarshalUsingDSL(DSL_RULE, Collections.emptyList(), new PackageDataModelOracleImpl(), Arrays.asList(new TestIActionPersistenceExtension()));
assertEquals(1, ruleModel.rhs.length);
IAction iAction = ruleModel.rhs[0];
assertTrue(iAction instanceof TestIAction);
}
Aggregations