Search in sources :

Example 6 with ShapeGlyph

use of org.kie.workbench.common.stunner.core.definition.shape.ShapeGlyph in project kie-wb-common by kiegroup.

the class DOMGlyphRenderersTest method testRender.

@Test
@SuppressWarnings("unchecked")
public void testRender() {
    final ShapeGlyph glyph = ShapeGlyph.create();
    tested.render(glyph, 100, 200);
    verify(rendererProvider, times(1)).apply(eq(ShapeGlyph.class));
}
Also used : ShapeGlyph(org.kie.workbench.common.stunner.core.definition.shape.ShapeGlyph) Test(org.junit.Test)

Example 7 with ShapeGlyph

use of org.kie.workbench.common.stunner.core.definition.shape.ShapeGlyph in project kie-wb-common by kiegroup.

the class ElementShapeGlyphRendererTest method testRender.

@Test
public void testRender() {
    final ShapeGlyph glyph = ShapeGlyph.create();
    tested.render(glyph, 100, 200);
    verify(viewSupplier, times(1)).get();
    verify(lienzoShapeGlyphRenderer, times(1)).render(eq(glyph), eq(100d), eq(200d));
    verify(view, times(1)).setWidget(any(LienzoPanel.class));
}
Also used : LienzoPanel(com.ait.lienzo.client.widget.LienzoPanel) ShapeGlyph(org.kie.workbench.common.stunner.core.definition.shape.ShapeGlyph) Test(org.junit.Test)

Aggregations

ShapeGlyph (org.kie.workbench.common.stunner.core.definition.shape.ShapeGlyph)7 Test (org.junit.Test)6 Shape (org.kie.workbench.common.stunner.core.client.shape.Shape)2 LienzoPanel (com.ait.lienzo.client.widget.LienzoPanel)1 Glyph (org.kie.workbench.common.stunner.core.definition.shape.Glyph)1