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));
}
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));
}
Aggregations