@Test public void testOpenPageWhenTableIsReadOnly() { when(presenter.isReadOnly()).thenReturn(true); final String selectedItem = "page"; page.openPage(selectedItem); verify(wizard, never()).start(any(BaseDecisionTableColumnPlugin.class)); }
void openPage(final String selectedItemText) { if (selectedItemText.isEmpty() || presenter.isReadOnly()) { return; } final DecisionTableColumnPlugin plugin = findPluginByIdentifier(selectedItemText); wizard.start(plugin); }
SummaryPage extends BaseDecisionTableColumnPage { void openPage(final String selectedItemText) { if (selectedItemText.isEmpty() || presenter.isReadOnly()) { return; } final DecisionTableColumnPlugin plugin = findPluginByIdentifier(selectedItemText); wizard.start(plugin); } }
SummaryPage extends BaseDecisionTableColumnPage { void openPage(final String selectedItemText) { if (selectedItemText.isEmpty() || presenter.isReadOnly()) { return; } final DecisionTableColumnPlugin plugin = findPluginByIdentifier(selectedItemText); wizard.start(plugin); } @Inject  SummaryPage(final ManagedInstance<DecisionTableColumnPlugin> pluginManagedInstance,
                       final View view,
                       final TranslationService translationService); }
SummaryPage extends BaseDecisionTableColumnPage { void openPage(final String selectedItemText) { if (selectedItemText.isEmpty() || presenter.isReadOnly()) { return; } final DecisionTableColumnPlugin plugin = findPluginByIdentifier(selectedItemText); wizard.start(plugin); } @Inject  SummaryPage(final ManagedInstance<DecisionTableColumnPlugin> pluginManagedInstance,
                       final View view,
                       final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); @PostConstruct void loadPlugins(); }
SummaryPage extends BaseDecisionTableColumnPage { void openPage(final String selectedItemText) { if (selectedItemText.isEmpty() || presenter.isReadOnly()) { return; } final DecisionTableColumnPlugin plugin = findPluginByIdentifier(selectedItemText); wizard.start(plugin); } @Inject  SummaryPage(final ManagedInstance<DecisionTableColumnPlugin> pluginManagedInstance,
                       final View view,
                       final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); @PostConstruct void loadPlugins();  }