Search in sources :

Example 1 with SketchEditor

use of com.archimatetool.editor.diagram.sketch.SketchEditor in project archi by archimatetool.

the class CanvasModelFactoryTests method testIsUsedFor.

@Test
public void testIsUsedFor() {
    ICreationFactory factory = new CanvasModelFactory(null);
    assertTrue(factory.isUsedFor(new CanvasEditor()));
    assertFalse(factory.isUsedFor(new SketchEditor()));
    assertFalse(factory.isUsedFor(new ArchimateDiagramEditor()));
}
Also used : SketchEditor(com.archimatetool.editor.diagram.sketch.SketchEditor) ArchimateDiagramEditor(com.archimatetool.editor.diagram.ArchimateDiagramEditor) ICreationFactory(com.archimatetool.editor.diagram.ICreationFactory) Test(org.junit.Test)

Aggregations

ArchimateDiagramEditor (com.archimatetool.editor.diagram.ArchimateDiagramEditor)1 ICreationFactory (com.archimatetool.editor.diagram.ICreationFactory)1 SketchEditor (com.archimatetool.editor.diagram.sketch.SketchEditor)1 Test (org.junit.Test)1