@Test public void testCurrentWorkItem() { final String expectedWorkItem = "workItem"; when(plugin.getWorkItem()).thenReturn(expectedWorkItem); final String actualWorkItem = page.currentWorkItem(); verify(plugin).getWorkItem(); assertEquals(expectedWorkItem, actualWorkItem); }
String currentWorkItem() { return plugin.getWorkItem(); }
WorkItemPage extends BaseDecisionTableColumnPage<T> { String currentWorkItem() { return plugin.getWorkItem(); } }
WorkItemPage extends BaseDecisionTableColumnPage<T> { String currentWorkItem() { return plugin.getWorkItem(); } @Inject  WorkItemPage(final View view,
                        final TranslationService translationService); }
WorkItemPage extends BaseDecisionTableColumnPage<T> { String currentWorkItem() { return plugin.getWorkItem(); } @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> { String currentWorkItem() { return plugin.getWorkItem(); } @Inject  WorkItemPage(final View view,
                        final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); void enableParameters();  }