@Test public void testGo() { AcceptsOneWidget container = mock(AcceptsOneWidget.class); presenter.go(container); verify(service).getAllKeys(Matchers.<AsyncRequestCallback<Array<KeyItem>>>anyObject()); verify(container).setWidget(eq(view)); }
@Override public void go(AcceptsOneWidget container) { refreshKeys(); container.setWidget(view); }
SshKeyManagerPresenter extends AbstractPreferencePagePresenter implements SshKeyManagerView.ActionDelegate { @Override public void go(AcceptsOneWidget container) { refreshKeys(); container.setWidget(view); } }
SshKeyManagerPresenter extends AbstractPreferencePagePresenter implements SshKeyManagerView.ActionDelegate { @Override public void go(AcceptsOneWidget container) { refreshKeys(); container.setWidget(view); } @Inject  SshKeyManagerPresenter(SshKeyManagerView view,
                                  SshKeyService service,
                                  SshResources resources,
                                  AppContext appContext,
                                  SshLocalizationConstant constant,
                                  EventBus eventBus,
                                  AsyncRequestLoader loader,
                                  UploadSshKeyPresenter uploadSshKeyPresenter,
                                  NotificationManager notificationManager,
                                  DtoUnmarshallerFactory dtoUnmarshallerFactory,
                                  DialogFactory dialogFactory); }
SshKeyManagerPresenter extends AbstractPreferencePagePresenter implements SshKeyManagerView.ActionDelegate { @Override public void go(AcceptsOneWidget container) { refreshKeys(); container.setWidget(view); } @Inject  SshKeyManagerPresenter(SshKeyManagerView view,
                                  SshKeyService service,
                                  SshResources resources,
                                  AppContext appContext,
                                  SshLocalizationConstant constant,
                                  EventBus eventBus,
                                  AsyncRequestLoader loader,
                                  UploadSshKeyPresenter uploadSshKeyPresenter,
                                  NotificationManager notificationManager,
                                  DtoUnmarshallerFactory dtoUnmarshallerFactory,
                                  DialogFactory dialogFactory); @Override void onViewClicked(@Nonnull final KeyItem key); @Override void onDeleteClicked(@Nonnull final KeyItem key); @Override void onGenerateClicked(); @Override void onUploadClicked(); @Override void onGenerateGithubKeyClicked(); @Override boolean isDirty(); @Override void go(AcceptsOneWidget container); @Override void storeChanges(); @Override void revertChanges(); }
SshKeyManagerPresenter extends AbstractPreferencePagePresenter implements SshKeyManagerView.ActionDelegate { @Override public void go(AcceptsOneWidget container) { refreshKeys(); container.setWidget(view); } @Inject  SshKeyManagerPresenter(SshKeyManagerView view,
                                  SshKeyService service,
                                  SshResources resources,
                                  AppContext appContext,
                                  SshLocalizationConstant constant,
                                  EventBus eventBus,
                                  AsyncRequestLoader loader,
                                  UploadSshKeyPresenter uploadSshKeyPresenter,
                                  NotificationManager notificationManager,
                                  DtoUnmarshallerFactory dtoUnmarshallerFactory,
                                  DialogFactory dialogFactory); @Override void onViewClicked(@Nonnull final KeyItem key); @Override void onDeleteClicked(@Nonnull final KeyItem key); @Override void onGenerateClicked(); @Override void onUploadClicked(); @Override void onGenerateGithubKeyClicked(); @Override boolean isDirty(); @Override void go(AcceptsOneWidget container); @Override void storeChanges(); @Override void revertChanges(); static final String GITHUB_HOST; }