Search in sources :

Example 1 with SvgDataUriGlyph

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

the class SvgElementGlyphRendererTest method testRender.

@Test
public void testRender() {
    final SvgDataUriGlyph glyph = SvgDataUriGlyph.Builder.build(uri);
    tested.render(glyph, 100, 200);
    verify(viewSupplier, times(1)).get();
    verify(view, times(1)).setDOMContent(eq(SVG_CONTENT), eq(100), eq(200));
}
Also used : SvgDataUriGlyph(org.kie.workbench.common.stunner.core.client.shape.SvgDataUriGlyph) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 SvgDataUriGlyph (org.kie.workbench.common.stunner.core.client.shape.SvgDataUriGlyph)1