@Test public void testClear() throws Exception { screen.clear(); verify(view).setIssueTitle(""); ArgumentCaptor<SafeHtml> safeHtmlArgumentCaptor = ArgumentCaptor.forClass(SafeHtml.class); verify(view).setExplanation(safeHtmlArgumentCaptor.capture()); assertEquals("", safeHtmlArgumentCaptor.getValue() .asString()); verify(view).hideLines(); verify(view).setLines(""); }
public void clear() { view.setIssueTitle(""); view.setExplanation(new SafeHtml() { @Override public String asString() { return ""; } }); view.setLines(""); view.hideLines(); }
IssuePresenter implements IsWidget { public void clear() { view.setIssueTitle(""); view.setExplanation(new SafeHtml() { @Override public String asString() { return ""; } }); view.setLines(""); view.hideLines(); } }
IssuePresenter implements IsWidget { public void clear() { view.setIssueTitle(""); view.setExplanation(new SafeHtml() { @Override public String asString() { return ""; } }); view.setLines(""); view.hideLines(); } @Inject  IssuePresenter(final IssuePresenterView view); }
IssuePresenter implements IsWidget { public void clear() { view.setIssueTitle(""); view.setExplanation(new SafeHtml() { @Override public String asString() { return ""; } }); view.setLines(""); view.hideLines(); } @Inject  IssuePresenter(final IssuePresenterView view); @Override Widget asWidget(); void show(final Issue issue); void clear(); }
IssuePresenter implements IsWidget { public void clear() { view.setIssueTitle(""); view.setExplanation(new SafeHtml() { @Override public String asString() { return ""; } }); view.setLines(""); view.hideLines(); } @Inject  IssuePresenter(final IssuePresenterView view); @Override Widget asWidget(); void show(final Issue issue); void clear();  }