@Test public void testInit() { presenter.init(); verify(view).init(presenter); assertEquals(view, presenter.getView()); verify(view).setStatus(containerRemoteStatusPresenter.getView()); verify(view).setRulesConfig(containerRulesConfigPresenter.getView()); verify(view).setProcessConfig(containerProcessConfigPresenter.getView()); }
@PostConstruct public void init() { view.init(this); view.setStatus(containerRemoteStatusPresenter.getView()); view.setRulesConfig(containerRulesConfigPresenter.getView()); view.setProcessConfig(containerProcessConfigPresenter.getView()); }
ContainerPresenter { @PostConstruct public void init() { view.init(this); view.setStatus(containerRemoteStatusPresenter.getView()); view.setRulesConfig(containerRulesConfigPresenter.getView()); view.setProcessConfig(containerProcessConfigPresenter.getView()); } }
ContainerPresenter { @PostConstruct public void init() { view.init(this); view.setStatus(containerRemoteStatusPresenter.getView()); view.setRulesConfig(containerRulesConfigPresenter.getView()); view.setProcessConfig(containerProcessConfigPresenter.getView()); } @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 { @PostConstruct public void init() { view.init(this); view.setStatus(containerRemoteStatusPresenter.getView()); view.setRulesConfig(containerRulesConfigPresenter.getView()); view.setProcessConfig(containerProcessConfigPresenter.getView()); } @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 { @PostConstruct public void init() { view.init(this); view.setStatus(containerRemoteStatusPresenter.getView()); view.setRulesConfig(containerRulesConfigPresenter.getView()); view.setProcessConfig(containerProcessConfigPresenter.getView()); } @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();  }