Also used :
CanvasClearSelectionEvent(org.kie.workbench.common.stunner.core.client.canvas.event.selection.CanvasClearSelectionEvent)
HasEventHandlers(org.kie.workbench.common.stunner.core.client.shape.view.HasEventHandlers)
ViewHandler(org.kie.workbench.common.stunner.core.client.shape.view.event.ViewHandler)
Mock(org.mockito.Mock)
RunWith(org.junit.runner.RunWith)
HasControlPoints(org.kie.workbench.common.stunner.core.client.shape.view.HasControlPoints)
AbstractCanvas(org.kie.workbench.common.stunner.core.client.canvas.AbstractCanvas)
ViewImpl(org.kie.workbench.common.stunner.core.graph.content.view.ViewImpl)
Shape(org.kie.workbench.common.stunner.core.client.shape.Shape)
Layer(org.kie.workbench.common.stunner.core.client.canvas.Layer)
CanvasSelectionEvent(org.kie.workbench.common.stunner.core.client.canvas.event.selection.CanvasSelectionEvent)
ArgumentCaptor(org.mockito.ArgumentCaptor)
Matchers.eq(org.mockito.Matchers.eq)
CanvasShapeRemovedEvent(org.kie.workbench.common.stunner.core.client.canvas.event.registration.CanvasShapeRemovedEvent)
ShapeState(org.kie.workbench.common.stunner.core.client.shape.ShapeState)
Element(org.kie.workbench.common.stunner.core.graph.Element)
Diagram(org.kie.workbench.common.stunner.core.diagram.Diagram)
Before(org.junit.Before)
ViewEventType(org.kie.workbench.common.stunner.core.client.shape.view.event.ViewEventType)
BoundsImpl(org.kie.workbench.common.stunner.core.graph.content.view.BoundsImpl)
Mockito.atLeastOnce(org.mockito.Mockito.atLeastOnce)
Assert.assertTrue(org.junit.Assert.assertTrue)
Test(org.junit.Test)
AbstractCanvasHandler(org.kie.workbench.common.stunner.core.client.canvas.AbstractCanvasHandler)
MouseClickHandler(org.kie.workbench.common.stunner.core.client.shape.view.event.MouseClickHandler)
Mockito.times(org.mockito.Mockito.times)
Mockito.when(org.mockito.Mockito.when)
ShapeView(org.kie.workbench.common.stunner.core.client.shape.view.ShapeView)
Metadata(org.kie.workbench.common.stunner.core.diagram.Metadata)
Mockito.verify(org.mockito.Mockito.verify)
Matchers.any(org.mockito.Matchers.any)
MouseClickEvent(org.kie.workbench.common.stunner.core.client.shape.view.event.MouseClickEvent)
Mockito.never(org.mockito.Mockito.never)
MockitoJUnitRunner(org.mockito.runners.MockitoJUnitRunner)
Assert.assertFalse(org.junit.Assert.assertFalse)
ShapeViewExtStub(org.kie.workbench.common.stunner.core.client.shape.ShapeViewExtStub)
EventSourceMock(org.uberfire.mocks.EventSourceMock)
Collections(java.util.Collections)
Assert.assertEquals(org.junit.Assert.assertEquals)
ShapeViewExtStub(org.kie.workbench.common.stunner.core.client.shape.ShapeViewExtStub)
Before(org.junit.Before)