@Test public void testShowParametersWhenParametersAreNotEnabled() { final PortableWorkDefinition workDefinition = mock(PortableWorkDefinition.class); when(plugin.getWorkItemDefinition()).thenReturn(workDefinition); page.showParameters(); verify(view).hideParameters(); }
void showParameters() { final boolean hasWorkItemDefinition = workItemDefinition() != null; if (isParametersEnabled() && hasWorkItemDefinition) { view.showParameters(parametersWidget()); } else { view.hideParameters(); } }
WorkItemPage extends BaseDecisionTableColumnPage<T> { void showParameters() { final boolean hasWorkItemDefinition = workItemDefinition() != null; if (isParametersEnabled() && hasWorkItemDefinition) { view.showParameters(parametersWidget()); } else { view.hideParameters(); } } }
WorkItemPage extends BaseDecisionTableColumnPage<T> { void showParameters() { final boolean hasWorkItemDefinition = workItemDefinition() != null; if (isParametersEnabled() && hasWorkItemDefinition) { view.showParameters(parametersWidget()); } else { view.hideParameters(); } } @Inject  WorkItemPage(final View view,
                        final TranslationService translationService); }
WorkItemPage extends BaseDecisionTableColumnPage<T> { void showParameters() { final boolean hasWorkItemDefinition = workItemDefinition() != null; if (isParametersEnabled() && hasWorkItemDefinition) { view.showParameters(parametersWidget()); } else { view.hideParameters(); } } @Inject  WorkItemPage(final View view,
                        final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); void enableParameters(); }
WorkItemPage extends BaseDecisionTableColumnPage<T> { void showParameters() { final boolean hasWorkItemDefinition = workItemDefinition() != null; if (isParametersEnabled() && hasWorkItemDefinition) { view.showParameters(parametersWidget()); } else { view.hideParameters(); } } @Inject  WorkItemPage(final View view,
                        final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); void enableParameters();  }