@Test public void testLoad() { when(runtimeManagementService.getContainersByContainerSpec( serverTemplateKey.getId(), containerSpec.getId())).thenReturn(containerSpecData); presenter.load(new ContainerSpecSelected(containerSpec)); verifyLoad(true, 1); }
public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } }
ContainerPresenter { public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } }
ContainerPresenter { public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } @Inject  ContainerPresenter(final Logger logger,
                              final View view,
                              final ContainerRemoteStatusPresenter containerRemoteStatusPresenter,
                              final ContainerStatusEmptyPresenter containerStatusEmptyPresenter,
                              final ContainerProcessConfigPresenter containerProcessConfigPresenter,
                              final ContainerRulesConfigPresenter containerRulesConfigPresenter,
                              final Caller<RuntimeManagementService> runtimeManagementService,
                              final Caller<SpecManagementService> specManagementService,
                              final Event<ServerTemplateSelected> serverTemplateSelectedEvent,
                              final Event<NotificationEvent> notification); }
ContainerPresenter { public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } @Inject  ContainerPresenter(final Logger logger,
                              final View view,
                              final ContainerRemoteStatusPresenter containerRemoteStatusPresenter,
                              final ContainerStatusEmptyPresenter containerStatusEmptyPresenter,
                              final ContainerProcessConfigPresenter containerProcessConfigPresenter,
                              final ContainerRulesConfigPresenter containerRulesConfigPresenter,
                              final Caller<RuntimeManagementService> runtimeManagementService,
                              final Caller<SpecManagementService> specManagementService,
                              final Event<ServerTemplateSelected> serverTemplateSelectedEvent,
                              final Event<NotificationEvent> notification); @PostConstruct void init(); View getView(); void onRefresh(@Observes final RefreshRemoteServers refresh); void load(@Observes final ContainerSpecSelected containerSpecSelected); void onInstanceUpdated(@Observes ServerInstanceUpdated instanceUpdated); void loadContainers(@Observes final ContainerSpecData content); void refreshOnContainerUpdateEvent(@Observes final ContainerUpdateEvent updateEvent); void refresh(); void load(final ContainerSpecKey containerSpecKey); void removeContainer(); void stopContainer(); void startContainer(); void toggleActivationContainer(); }
ContainerPresenter { public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } @Inject  ContainerPresenter(final Logger logger,
                              final View view,
                              final ContainerRemoteStatusPresenter containerRemoteStatusPresenter,
                              final ContainerStatusEmptyPresenter containerStatusEmptyPresenter,
                              final ContainerProcessConfigPresenter containerProcessConfigPresenter,
                              final ContainerRulesConfigPresenter containerRulesConfigPresenter,
                              final Caller<RuntimeManagementService> runtimeManagementService,
                              final Caller<SpecManagementService> specManagementService,
                              final Event<ServerTemplateSelected> serverTemplateSelectedEvent,
                              final Event<NotificationEvent> notification); @PostConstruct void init(); View getView(); void onRefresh(@Observes final RefreshRemoteServers refresh); void load(@Observes final ContainerSpecSelected containerSpecSelected); void onInstanceUpdated(@Observes ServerInstanceUpdated instanceUpdated); void loadContainers(@Observes final ContainerSpecData content); void refreshOnContainerUpdateEvent(@Observes final ContainerUpdateEvent updateEvent); void refresh(); void load(final ContainerSpecKey containerSpecKey); void removeContainer(); void stopContainer(); void startContainer(); void toggleActivationContainer();  }