Search in sources :

Example 1 with BusinessActorUIProvider

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));
}
Also used : IArchimateElement(com.archimatetool.model.IArchimateElement) IDiagramModelArchimateObject(com.archimatetool.model.IDiagramModelArchimateObject) BusinessActorUIProvider(com.archimatetool.editor.ui.factory.elements.BusinessActorUIProvider) Test(org.junit.Test)

Example 2 with BusinessActorUIProvider

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));
}
Also used : EObject(org.eclipse.emf.ecore.EObject) BusinessActorUIProvider(com.archimatetool.editor.ui.factory.elements.BusinessActorUIProvider) Test(org.junit.Test)

Aggregations

BusinessActorUIProvider (com.archimatetool.editor.ui.factory.elements.BusinessActorUIProvider)2 Test (org.junit.Test)2 IArchimateElement (com.archimatetool.model.IArchimateElement)1 IDiagramModelArchimateObject (com.archimatetool.model.IDiagramModelArchimateObject)1 EObject (org.eclipse.emf.ecore.EObject)1