use of com.archimatetool.editor.ui.factory.elements.BusinessActorUIProvider in project archi by archimatetool.
the class ObjectUIFactoryProviderTests method testGetProvider_EObject_DiagramModelArchimateObject.
@Test
public void testGetProvider_EObject_DiagramModelArchimateObject() {
IObjectUIProvider provider = new BusinessActorUIProvider();
factory.registerProvider(provider);
IDiagramModelArchimateObject eObject = IArchimateFactory.eINSTANCE.createDiagramModelArchimateObject();
IArchimateElement element = IArchimateFactory.eINSTANCE.createBusinessActor();
eObject.setArchimateElement(element);
assertEquals(provider, factory.getProvider(eObject));
}
use of com.archimatetool.editor.ui.factory.elements.BusinessActorUIProvider in project archi by archimatetool.
the class ObjectUIFactoryProviderTests method testGetProvider_EObject_ArchiMateElement.
@Test
public void testGetProvider_EObject_ArchiMateElement() {
IObjectUIProvider provider = new BusinessActorUIProvider();
factory.registerProvider(provider);
EObject eObject = IArchimateFactory.eINSTANCE.createBusinessActor();
assertEquals(provider, factory.getProvider(eObject));
}
Aggregations