@Test public void testRefresh() { final ContainerSpecKey containerSpecKey = new ContainerSpecKey( "id", "name", new ServerTemplateKey() ); presenter.setup( containerSpecKey ); presenter.refresh(); final ArgumentCaptor<RefreshRemoteServers> refreshRemoteServersCaptor = ArgumentCaptor.forClass( RefreshRemoteServers.class ); verify( refreshRemoteServersEvent ).fire( refreshRemoteServersCaptor.capture() ); assertEquals( containerSpecKey, refreshRemoteServersCaptor.getValue().getContainerSpecKey() ); }
public void refresh() { refreshRemoteServersEvent.fire(new RefreshRemoteServers(containerSpecKey)); }
ContainerStatusEmptyPresenter { public void refresh() { refreshRemoteServersEvent.fire(new RefreshRemoteServers(containerSpecKey)); } }
ContainerStatusEmptyPresenter { public void refresh() { refreshRemoteServersEvent.fire(new RefreshRemoteServers(containerSpecKey)); } @Inject  ContainerStatusEmptyPresenter(final View view,
                                         final Event<RefreshRemoteServers> refreshRemoteServersEvent); }
ContainerStatusEmptyPresenter { public void refresh() { refreshRemoteServersEvent.fire(new RefreshRemoteServers(containerSpecKey)); } @Inject  ContainerStatusEmptyPresenter(final View view,
                                         final Event<RefreshRemoteServers> refreshRemoteServersEvent); @PostConstruct void init(); View getView(); void setup(final ContainerSpecKey containerSpecKey); void refresh(); }
ContainerStatusEmptyPresenter { public void refresh() { refreshRemoteServersEvent.fire(new RefreshRemoteServers(containerSpecKey)); } @Inject  ContainerStatusEmptyPresenter(final View view,
                                         final Event<RefreshRemoteServers> refreshRemoteServersEvent); @PostConstruct void init(); View getView(); void setup(final ContainerSpecKey containerSpecKey); void refresh();  }