RadarMenuBuilder implements MenuFactory.CustomMenuBuilder,
                                         RadarMenuView.Presenter { @SuppressWarnings("unused") public void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event) { radarMenuItem.setEnabled(event.getPresenter().isPresent()); } @Inject  RadarMenuBuilder(final RadarMenuView view); @PostConstruct void setup(); @Override void setModeller(final GuidedDecisionTableModellerView.Presenter modeller); @Override void push(final MenuFactory.CustomMenuBuilder element); @Override MenuItem build(); @SuppressWarnings("unused") void onUpdateRadarEvent(final @Observes UpdateRadarEvent event); @SuppressWarnings("unused") void onDecisionTablePinnedEvent(final @Observes DecisionTablePinnedEvent event); @SuppressWarnings("unused") void onDecisionTableSelectedEvent(final @Observes DecisionTableSelectedEvent event); @Override void onClick(); @Override void onDragVisibleBounds(final double canvasX,
                                    final double canvasY);  }
@Test public void testOnDecisionTableSelectedEvent() { final DecisionTableSelectedEvent event = new DecisionTableSelectedEvent(dtPresenter); builder.onDecisionTableSelectedEvent(event); verify(view, times(1)).setEnabled(true); }
@Test public void testOnDecisionTableSelectedEventNoTableSelected() { final DecisionTableSelectedEvent event = DecisionTableSelectedEvent.NONE; builder.onDecisionTableSelectedEvent(event); verify(view, times(1)).setEnabled(false); }