Search in sources :

Example 1 with DMNSVGShapeDefImpl

use of org.kie.workbench.common.dmn.client.shape.def.DMNSVGShapeDefImpl in project kie-wb-common by kiegroup.

the class DMNViewHandlersTest method testNewSizeHandler.

@Test
public void testNewSizeHandler() {
    final SizeHandler<DMNViewDefinition, SVGShapeView> handler = new DMNSVGShapeDefImpl().newSizeHandler();
    handler.handle(view, shape);
    verify(shape).setSizeConstraints(eq(Width.MIN), eq(Height.MIN), eq(Width.MAX), eq(Height.MAX));
}
Also used : DMNSVGShapeDefImpl(org.kie.workbench.common.dmn.client.shape.def.DMNSVGShapeDefImpl) DMNViewDefinition(org.kie.workbench.common.dmn.api.definition.DMNViewDefinition) SVGShapeView(org.kie.workbench.common.stunner.svg.client.shape.view.SVGShapeView) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 DMNViewDefinition (org.kie.workbench.common.dmn.api.definition.DMNViewDefinition)1 DMNSVGShapeDefImpl (org.kie.workbench.common.dmn.client.shape.def.DMNSVGShapeDefImpl)1 SVGShapeView (org.kie.workbench.common.stunner.svg.client.shape.view.SVGShapeView)1