Search in sources :

Example 1 with AccessRelationshipUIProvider

use of com.archimatetool.editor.ui.factory.relationships.AccessRelationshipUIProvider in project archi by archimatetool.

the class ObjectUIFactoryProviderTests method testGetProvider_EObject_DiagramModelArchimateConnection.

@Test
public void testGetProvider_EObject_DiagramModelArchimateConnection() {
    IObjectUIProvider provider = new AccessRelationshipUIProvider();
    factory.registerProvider(provider);
    IDiagramModelArchimateConnection eObject = IArchimateFactory.eINSTANCE.createDiagramModelArchimateConnection();
    IArchimateRelationship relation = IArchimateFactory.eINSTANCE.createAccessRelationship();
    eObject.setArchimateRelationship(relation);
    assertEquals(provider, factory.getProvider(eObject));
}
Also used : IDiagramModelArchimateConnection(com.archimatetool.model.IDiagramModelArchimateConnection) IArchimateRelationship(com.archimatetool.model.IArchimateRelationship) AccessRelationshipUIProvider(com.archimatetool.editor.ui.factory.relationships.AccessRelationshipUIProvider) Test(org.junit.Test)

Aggregations

AccessRelationshipUIProvider (com.archimatetool.editor.ui.factory.relationships.AccessRelationshipUIProvider)1 IArchimateRelationship (com.archimatetool.model.IArchimateRelationship)1 IDiagramModelArchimateConnection (com.archimatetool.model.IDiagramModelArchimateConnection)1 Test (org.junit.Test)1