Search in sources :

Example 6 with ModelReader

use of org.kie.workbench.common.forms.data.modeller.service.ext.ModelReader in project kie-wb-common by kiegroup.

the class AbstractDMOModelReaderServiceTest method resolveModelReader.

protected ModelReader resolveModelReader() {
    SERVICE service = weldContainer.select(getServiceType()).get();
    Assertions.assertThat(service).isNotNull();
    ModelReader modelReader = service.getModelReader(getSource());
    Assertions.assertThat(modelReader).isNotNull();
    return modelReader;
}
Also used : ModelReader(org.kie.workbench.common.forms.data.modeller.service.ext.ModelReader)

Aggregations

ModelReader (org.kie.workbench.common.forms.data.modeller.service.ext.ModelReader)6 Test (org.junit.Test)3 DataObjectFormModel (org.kie.workbench.common.forms.data.modeller.model.DataObjectFormModel)3 RunWith (org.junit.runner.RunWith)1 RawMVELEvaluator (org.kie.soup.project.datamodel.commons.util.RawMVELEvaluator)1 RuntimeDMOModelReader (org.kie.workbench.common.forms.data.modeller.service.impl.ext.dmo.runtime.RuntimeDMOModelReader)1 Client (org.kie.workbench.common.forms.jbpm.server.service.formGeneration.model.Client)1 Expense (org.kie.workbench.common.forms.jbpm.server.service.formGeneration.model.Expense)1 Line (org.kie.workbench.common.forms.jbpm.server.service.formGeneration.model.Line)1 ArgumentMatchers.any (org.mockito.ArgumentMatchers.any)1 Mockito (org.mockito.Mockito)1 Mockito.when (org.mockito.Mockito.when)1 MockitoJUnitRunner (org.mockito.junit.MockitoJUnitRunner)1 Answer (org.mockito.stubbing.Answer)1