@Test public void testSetContent() { presenter.setContent(imports, false); verify(view, times(1)).setContent(importsArgumentCaptor.capture(), eq(false)); verify(view).updateRenderedColumns(); final List<Import> importsArgument = importsArgumentCaptor.getValue(); assertEquals(2, importsArgument.size()); assertContains("import1", importsArgument); assertContains("import2", importsArgument); }
@Override public void setContent(final ProjectImports importTypes, final boolean isReadOnly) { checkNotNull("importTypes", importTypes); view.setContent(importTypes.getImports().getImports(), isReadOnly); view.updateRenderedColumns(); }
ImportsWidgetPresenter implements ImportsWidgetView.Presenter,
                   IsWidget { @Override public void setContent(final ProjectImports importTypes, final boolean isReadOnly) { checkNotNull("importTypes", importTypes); view.setContent(importTypes.getImports().getImports(), isReadOnly); view.updateRenderedColumns(); } }
ImportsWidgetPresenter implements ImportsWidgetView.Presenter,
                   IsWidget { @Override public void setContent(final ProjectImports importTypes, final boolean isReadOnly) { checkNotNull("importTypes", importTypes); view.setContent(importTypes.getImports().getImports(), isReadOnly); view.updateRenderedColumns(); } ImportsWidgetPresenter(); @Inject  ImportsWidgetPresenter(final ImportsWidgetView view); }
ImportsWidgetPresenter implements ImportsWidgetView.Presenter,
                   IsWidget { @Override public void setContent(final ProjectImports importTypes, final boolean isReadOnly) { checkNotNull("importTypes", importTypes); view.setContent(importTypes.getImports().getImports(), isReadOnly); view.updateRenderedColumns(); } ImportsWidgetPresenter(); @Inject  ImportsWidgetPresenter(final ImportsWidgetView view); @Override void setContent(final ProjectImports importTypes,
                           final boolean isReadOnly); @Override Widget asWidget(); }
ImportsWidgetPresenter implements ImportsWidgetView.Presenter,
                   IsWidget { @Override public void setContent(final ProjectImports importTypes, final boolean isReadOnly) { checkNotNull("importTypes", importTypes); view.setContent(importTypes.getImports().getImports(), isReadOnly); view.updateRenderedColumns(); } ImportsWidgetPresenter(); @Inject  ImportsWidgetPresenter(final ImportsWidgetView view); @Override void setContent(final ProjectImports importTypes,
                           final boolean isReadOnly); @Override Widget asWidget();  }