use of org.kie.workbench.common.stunner.core.registry.impl.DefaultDefinitionsCacheRegistry in project kie-wb-common by kiegroup.
the class StunnerTestingMockAPI method initInstances.
protected void initInstances() {
definitionManager = mock(DefinitionManager.class);
definitionSetRegistry = mock(TypeDefinitionSetRegistry.class);
adapterManager = mock(AdapterManager.class);
adapterRegistry = mock(AdapterRegistry.class);
ruleManager = mock(RuleManager.class);
initFactory();
definitionUtils = spy(new DefinitionUtils(definitionManager, new DefaultDefinitionsCacheRegistry(factoryManager, adapterManager)));
initAdapters();
}
use of org.kie.workbench.common.stunner.core.registry.impl.DefaultDefinitionsCacheRegistry 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()));
}
Aggregations