@Test public void testShowEmptyIssue() throws Exception { screen.show(Issue.EMPTY); verify(view).setIssueTitle("---"); ArgumentCaptor<SafeHtml> safeHtmlArgumentCaptor = ArgumentCaptor.forClass(SafeHtml.class); verify(view).setExplanation(safeHtmlArgumentCaptor.capture()); assertEquals("---", safeHtmlArgumentCaptor.getValue() .asString()); verify(view).setLines(""); }
public void show(final Issue issue) { final String title = ExplanationProvider.toTitle(issue); view.setIssueTitle(title); view.setExplanation(ExplanationProvider.toHTML(issue)); view.setLines(makeRowNumbers(issue)); }
IssuePresenter implements IsWidget { public void show(final Issue issue) { final String title = ExplanationProvider.toTitle(issue); view.setIssueTitle(title); view.setExplanation(ExplanationProvider.toHTML(issue)); view.setLines(makeRowNumbers(issue)); } }
IssuePresenter implements IsWidget { public void show(final Issue issue) { final String title = ExplanationProvider.toTitle(issue); view.setIssueTitle(title); view.setExplanation(ExplanationProvider.toHTML(issue)); view.setLines(makeRowNumbers(issue)); } @Inject  IssuePresenter(final IssuePresenterView view); }
IssuePresenter implements IsWidget { public void show(final Issue issue) { final String title = ExplanationProvider.toTitle(issue); view.setIssueTitle(title); view.setExplanation(ExplanationProvider.toHTML(issue)); view.setLines(makeRowNumbers(issue)); } @Inject  IssuePresenter(final IssuePresenterView view); @Override Widget asWidget(); void show(final Issue issue); void clear(); }
IssuePresenter implements IsWidget { public void show(final Issue issue) { final String title = ExplanationProvider.toTitle(issue); view.setIssueTitle(title); view.setExplanation(ExplanationProvider.toHTML(issue)); view.setLines(makeRowNumbers(issue)); } @Inject  IssuePresenter(final IssuePresenterView view); @Override Widget asWidget(); void show(final Issue issue); void clear();  }