use of com.archimatetool.editor.diagram.editparts.DiagramConnectionEditPart in project archi by archimatetool.
the class SketchEditPartFactoryTests method testLineConnectionEditPart.
@Test
public void testLineConnectionEditPart() {
IDiagramModelConnection conn = IArchimateFactory.eINSTANCE.createDiagramModelConnection();
EditPart editPart = editPartFactory.createEditPart(null, conn);
assertTrue(editPart instanceof DiagramConnectionEditPart);
assertEquals(conn, editPart.getModel());
}
use of com.archimatetool.editor.diagram.editparts.DiagramConnectionEditPart in project archi by archimatetool.
the class CanvasModelEditPartFactoryTests method testCanvasConnectionEditPart.
@Test
public void testCanvasConnectionEditPart() {
IDiagramModelConnection conn = ICanvasFactory.eINSTANCE.createCanvasModelConnection();
EditPart editPart = editPartFactory.createEditPart(null, conn);
assertTrue(editPart instanceof DiagramConnectionEditPart);
assertEquals(conn, editPart.getModel());
}
use of com.archimatetool.editor.diagram.editparts.DiagramConnectionEditPart in project archi by archimatetool.
the class CanvasLineConnectionUIProviderTests method testCreateEditPart.
@Override
public void testCreateEditPart() {
EditPart editPart = provider.createEditPart();
assertTrue(editPart instanceof DiagramConnectionEditPart);
}
Aggregations