@Test public void testPopulateMenu() { final DMNEditorMenuSessionItems menuItems = spy(new DMNEditorMenuSessionItems(builder, sessionCommands, placeManager)); final MenuItem menuItem = mock(MenuItem.class); doNothing().when(menuItems).superPopulateMenu(any()); doReturn(menuItem).when(menuItems).newPerformAutomaticLayout(); menuItems.populateMenu(fileMenuBuilder); verify(menuItems).addPerformAutomaticLayout(any()); }
@Override public void populateMenu(final FileMenuBuilder menu) { superPopulateMenu(menu); addPerformAutomaticLayout(menu); }
DMNEditorMenuSessionItems extends AbstractDiagramEditorMenuSessionItems<DMNEditorMenuItemsBuilder> { @Override public void populateMenu(final FileMenuBuilder menu) { superPopulateMenu(menu); addPerformAutomaticLayout(menu); } }
DMNEditorMenuSessionItems extends AbstractDiagramEditorMenuSessionItems<DMNEditorMenuItemsBuilder> { @Override public void populateMenu(final FileMenuBuilder menu) { superPopulateMenu(menu); addPerformAutomaticLayout(menu); } @Inject  DMNEditorMenuSessionItems(final DMNEditorMenuItemsBuilder itemsBuilder,
                                     final @DMNEditor DMNEditorSessionCommands sessionCommands,
                                     final PlaceManager placeManager); }
DMNEditorMenuSessionItems extends AbstractDiagramEditorMenuSessionItems<DMNEditorMenuItemsBuilder> { @Override public void populateMenu(final FileMenuBuilder menu) { superPopulateMenu(menu); addPerformAutomaticLayout(menu); } @Inject  DMNEditorMenuSessionItems(final DMNEditorMenuItemsBuilder itemsBuilder,
                                     final @DMNEditor DMNEditorSessionCommands sessionCommands,
                                     final PlaceManager placeManager); @Override void populateMenu(final FileMenuBuilder menu); @Override void setEnabled(final boolean enabled); }
DMNEditorMenuSessionItems extends AbstractDiagramEditorMenuSessionItems<DMNEditorMenuItemsBuilder> { @Override public void populateMenu(final FileMenuBuilder menu) { superPopulateMenu(menu); addPerformAutomaticLayout(menu); } @Inject  DMNEditorMenuSessionItems(final DMNEditorMenuItemsBuilder itemsBuilder,
                                     final @DMNEditor DMNEditorSessionCommands sessionCommands,
                                     final PlaceManager placeManager); @Override void populateMenu(final FileMenuBuilder menu); @Override void setEnabled(final boolean enabled);  }