use of com.archimatetool.editor.diagram.editparts.ArchimateDiagramPart in project archi by archimatetool.
the class ArchimateDiagramModelUIProviderTests method testCreateEditPart.
@Override
public void testCreateEditPart() {
EditPart editPart = provider.createEditPart();
assertTrue(editPart instanceof ArchimateDiagramPart);
}
use of com.archimatetool.editor.diagram.editparts.ArchimateDiagramPart in project archi by archimatetool.
the class PropertiesLabelProviderTests method testGetTextDiagramModel.
@Test
public void testGetTextDiagramModel() {
// Text for diagram model
IArchimateDiagramModel dm = IArchimateFactory.eINSTANCE.createArchimateDiagramModel();
String text = provider.getText(new StructuredSelection(dm));
assertEquals("View", text);
// Text for EditPart
ArchimateDiagramPart editPart = new ArchimateDiagramPart();
editPart.setModel(dm);
text = provider.getText(new StructuredSelection(editPart));
assertEquals("View", text);
}
Aggregations