Search in sources :

Example 1 with DMNDefinitionSetResourceType

use of org.kie.workbench.common.dmn.api.resource.DMNDefinitionSetResourceType in project kie-wb-common by kiegroup.

the class DMNDiagramResourceTypeTest method setup.

@Before
public void setup() {
    final Decision category = new Decision();
    this.definitionSetResourceType = new DMNDefinitionSetResourceType(category);
    this.resourceType = new DMNDiagramResourceType(category, translationService);
    doAnswer((i) -> i.getArguments()[0].toString()).when(translationService).getTranslation(Mockito.<String>any());
}
Also used : Decision(org.guvnor.common.services.project.categories.Decision) DMNDefinitionSetResourceType(org.kie.workbench.common.dmn.api.resource.DMNDefinitionSetResourceType) Before(org.junit.Before)

Aggregations

Decision (org.guvnor.common.services.project.categories.Decision)1 Before (org.junit.Before)1 DMNDefinitionSetResourceType (org.kie.workbench.common.dmn.api.resource.DMNDefinitionSetResourceType)1