use of org.kie.workbench.common.stunner.core.TestingSimpleDomainObject in project kie-wb-common by kiegroup.
the class GraphUtilsTest method setup.
@Before
@SuppressWarnings("unchecked")
public void setup() {
graphTestHandler = new TestingGraphMockHandler();
graphInstance = TestingGraphInstanceBuilder.newGraph4(graphTestHandler);
domainObject = new TestingSimpleDomainObject(graphTestHandler);
when(element.getContent()).thenReturn(content);
when(content.getDefinition()).thenReturn(domainObject);
}
use of org.kie.workbench.common.stunner.core.TestingSimpleDomainObject in project kie-wb-common by kiegroup.
the class DefinitionUtilsTest method setUp.
@Before
public void setUp() throws Exception {
graphMockHandler = new TestingGraphMockHandler();
domainObject = new TestingSimpleDomainObject(graphMockHandler);
tested = new DefinitionUtils(graphMockHandler.getDefinitionManager(), new DefaultDefinitionsCacheRegistry(graphMockHandler.getFactoryManager(), graphMockHandler.getAdapterManager()));
}
use of org.kie.workbench.common.stunner.core.TestingSimpleDomainObject in project kie-wb-common by kiegroup.
the class UpdateDomainObjectPropertyValueCommandTest method setup.
@Before
@SuppressWarnings("unchecked")
public void setup() throws Exception {
super.init();
domainObject = new TestingSimpleDomainObject(testingGraphMockHandler);
when(propertyAdapter.getValue(domainObject.getNameProperty())).thenReturn(PROPERTY_OLD_VALUE);
this.command = new UpdateDomainObjectPropertyValueCommand(domainObject, TestingSimpleDomainObject.NAME, PROPERTY_VALUE);
}
Aggregations