@Test public void testOnRefreshRuntimesWithNoItems() { prepareRefreshWithNoItems(); presenter.onRefreshRuntime(new RefreshRuntimeEvent(providerKey)); verifyUILoadedWithNoItems(2); verifyRuntimesInfoLoaded(2); }
public void onRefreshRuntime(@Observes final RefreshRuntimeEvent event) { if (event.getProviderKey() != null && event.getProviderKey().equals(provider.getKey())) { load(event.getProviderKey()); } }
ProviderPresenter { public void onRefreshRuntime(@Observes final RefreshRuntimeEvent event) { if (event.getProviderKey() != null && event.getProviderKey().equals(provider.getKey())) { load(event.getProviderKey()); } } }
ProviderPresenter { public void onRefreshRuntime(@Observes final RefreshRuntimeEvent event) { if (event.getProviderKey() != null && event.getProviderKey().equals(provider.getKey())) { load(event.getProviderKey()); } } @Inject  ProviderPresenter(final View view,
                             final Caller<ProviderService> providerService,
                             final Caller<ProvisioningScreensService> provisioningScreensService,
                             final ProviderStatusEmptyPresenter providerStatusEmptyPresenter,
                             final ProviderStatusPresenter providerStatusPresenter,
                             final ProviderConfigEmptyPresenter providerConfigEmptyPresenter,
                             final ClientProviderHandlerRegistry providerHandlerRegistry,
                             final Event<NotificationEvent> notification,
                             final Event<ProviderTypeSelectedEvent> providerTypeSelectedEvent,
                             final Event<AddNewRuntimeEvent> addNewRuntimeEvent); }
ProviderPresenter { public void onRefreshRuntime(@Observes final RefreshRuntimeEvent event) { if (event.getProviderKey() != null && event.getProviderKey().equals(provider.getKey())) { load(event.getProviderKey()); } } @Inject  ProviderPresenter(final View view,
                             final Caller<ProviderService> providerService,
                             final Caller<ProvisioningScreensService> provisioningScreensService,
                             final ProviderStatusEmptyPresenter providerStatusEmptyPresenter,
                             final ProviderStatusPresenter providerStatusPresenter,
                             final ProviderConfigEmptyPresenter providerConfigEmptyPresenter,
                             final ClientProviderHandlerRegistry providerHandlerRegistry,
                             final Event<NotificationEvent> notification,
                             final Event<ProviderTypeSelectedEvent> providerTypeSelectedEvent,
                             final Event<AddNewRuntimeEvent> addNewRuntimeEvent); @PostConstruct void init(); void onProviderSelected(@Observes final ProviderSelectedEvent event); void onRefreshRuntime(@Observes final RefreshRuntimeEvent event); void refresh(); void onRemoveProvider(); void removeProvider(); void deploy(); IsElement getView(); }
ProviderPresenter { public void onRefreshRuntime(@Observes final RefreshRuntimeEvent event) { if (event.getProviderKey() != null && event.getProviderKey().equals(provider.getKey())) { load(event.getProviderKey()); } } @Inject  ProviderPresenter(final View view,
                             final Caller<ProviderService> providerService,
                             final Caller<ProvisioningScreensService> provisioningScreensService,
                             final ProviderStatusEmptyPresenter providerStatusEmptyPresenter,
                             final ProviderStatusPresenter providerStatusPresenter,
                             final ProviderConfigEmptyPresenter providerConfigEmptyPresenter,
                             final ClientProviderHandlerRegistry providerHandlerRegistry,
                             final Event<NotificationEvent> notification,
                             final Event<ProviderTypeSelectedEvent> providerTypeSelectedEvent,
                             final Event<AddNewRuntimeEvent> addNewRuntimeEvent); @PostConstruct void init(); void onProviderSelected(@Observes final ProviderSelectedEvent event); void onRefreshRuntime(@Observes final RefreshRuntimeEvent event); void refresh(); void onRemoveProvider(); void removeProvider(); void deploy(); IsElement getView();  }