@Test public void testGetTitle() throws Exception { final String errorKey = GuidedDecisionTableErraiConstants.PatternPage_Pattern; final String errorMessage = "Title"; when(translationService.format(errorKey)).thenReturn(errorMessage); final String title = page.getTitle(); assertEquals(errorMessage, title); }
@Override public String getTitle() { return translate(GuidedDecisionTableErraiConstants.PatternPage_Pattern); }
PatternPage extends BaseDecisionTableColumnPage<T> { @Override public String getTitle() { return translate(GuidedDecisionTableErraiConstants.PatternPage_Pattern); } }
PatternPage extends BaseDecisionTableColumnPage<T> { @Override public String getTitle() { return translate(GuidedDecisionTableErraiConstants.PatternPage_Pattern); } @Inject  PatternPage(final View view,
                       final NewPatternPresenter newPatternPresenter,
                       final TranslationService translationService); }
PatternPage extends BaseDecisionTableColumnPage<T> { @Override public String getTitle() { return translate(GuidedDecisionTableErraiConstants.PatternPage_Pattern); } @Inject  PatternPage(final View view,
                       final NewPatternPresenter newPatternPresenter,
                       final TranslationService translationService); @Override void initialise(); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); GuidedDecisionTableView.Presenter presenter(); void setEditingPattern(final PatternWrapper wrapper); void disableEntryPoint(); boolean isNegatedPatternEnabled(); void disableNegatedPatterns(); boolean isPatternCreationEnabled(); void disablePatternCreation(); }
PatternPage extends BaseDecisionTableColumnPage<T> { @Override public String getTitle() { return translate(GuidedDecisionTableErraiConstants.PatternPage_Pattern); } @Inject  PatternPage(final View view,
                       final NewPatternPresenter newPatternPresenter,
                       final TranslationService translationService); @Override void initialise(); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); GuidedDecisionTableView.Presenter presenter(); void setEditingPattern(final PatternWrapper wrapper); void disableEntryPoint(); boolean isNegatedPatternEnabled(); void disableNegatedPatterns(); boolean isPatternCreationEnabled(); void disablePatternCreation();  }