Search in sources :

Example 1 with ExternalPojo1

use of org.kie.workbench.common.services.datamodeller.driver.testclasses.ExternalPojo1 in project kie-wb-common by kiegroup.

the class ModuleDataModelOracleUtilsTest method init.

@Before
public void init() {
    try {
        ModuleDataModelOracleUtilsTest.class.getClassLoader().loadClass(ExternalPojo1.class.getName());
        ModuleDataModelOracleBuilder dmoBuilder = ModuleDataModelOracleBuilder.newModuleOracleBuilder(new RawMVELEvaluator());
        dmoBuilder.addPackage(TEST_PACKAGE);
        dmoBuilder.addClass(ExternalPojo1.class, false, TypeSource.JAVA_DEPENDENCY);
        dmoBuilder.addClass(ExternalPojo2.class, false, TypeSource.JAVA_DEPENDENCY);
        dmoBuilder.addClass(ExternalEnum1.class, false, TypeSource.JAVA_DEPENDENCY);
        dmoBuilder.addClass(ExternalEnum2.class, false, TypeSource.JAVA_DEPENDENCY);
        dataModelOracle = dmoBuilder.build();
    } catch (Exception e) {
        fail("Model loading failed: " + e.getMessage());
    }
}
Also used : RawMVELEvaluator(org.kie.soup.project.datamodel.commons.util.RawMVELEvaluator) ExternalPojo1(org.kie.workbench.common.services.datamodeller.driver.testclasses.ExternalPojo1) ModuleDataModelOracleBuilder(org.kie.workbench.common.services.datamodel.backend.server.builder.projects.ModuleDataModelOracleBuilder) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 RawMVELEvaluator (org.kie.soup.project.datamodel.commons.util.RawMVELEvaluator)1 ModuleDataModelOracleBuilder (org.kie.workbench.common.services.datamodel.backend.server.builder.projects.ModuleDataModelOracleBuilder)1 ExternalPojo1 (org.kie.workbench.common.services.datamodeller.driver.testclasses.ExternalPojo1)1