@Test public void testDeleteDRGElement() { final DRGElement drgElement = mock(DRGElement.class); final AbstractCanvasHandler canvasHandler = mock(AbstractCanvasHandler.class); when(dmnGraphUtils.getCanvasHandler()).thenReturn(canvasHandler); doReturn(compositeCommand).when(handler).buildDeleteCommand(drgElement); handler.deleteDRGElement(drgElement); verify(sessionCommandManager).execute(canvasHandler, compositeCommand); }
void deleteDRGElement(final DRGElement drgElement) { sessionCommandManager.execute(getCanvasHandler(), buildDeleteCommand(drgElement)); }
DMNIncludedModelHandler implements DRGElementHandler { void deleteDRGElement(final DRGElement drgElement) { sessionCommandManager.execute(getCanvasHandler(), buildDeleteCommand(drgElement)); } }
DMNIncludedModelHandler implements DRGElementHandler { void deleteDRGElement(final DRGElement drgElement) { sessionCommandManager.execute(getCanvasHandler(), buildDeleteCommand(drgElement)); } @Inject  DMNIncludedModelHandler(final DMNGraphUtils dmnGraphUtils,
                                   final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                   final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                   final DefinitionUtils definitionUtils); }
DMNIncludedModelHandler implements DRGElementHandler { void deleteDRGElement(final DRGElement drgElement) { sessionCommandManager.execute(getCanvasHandler(), buildDeleteCommand(drgElement)); } @Inject  DMNIncludedModelHandler(final DMNGraphUtils dmnGraphUtils,
                                   final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                   final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                   final DefinitionUtils definitionUtils); @Override void update(final String oldModelName,
                       final String newModelName); @Override void destroy(final String oldModelName); }
DMNIncludedModelHandler implements DRGElementHandler { void deleteDRGElement(final DRGElement drgElement) { sessionCommandManager.execute(getCanvasHandler(), buildDeleteCommand(drgElement)); } @Inject  DMNIncludedModelHandler(final DMNGraphUtils dmnGraphUtils,
                                   final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                   final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                   final DefinitionUtils definitionUtils); @Override void update(final String oldModelName,
                       final String newModelName); @Override void destroy(final String oldModelName);  }