@Test public void testSetup() { final ContainerSpecKey containerSpecKey = new ContainerSpecKey( "id", "container-name", new ServerTemplateKey( "template-id", "template-name" ) ); final ProcessConfig processConfig = new ProcessConfig( RuntimeStrategy.PER_REQUEST.toString(), "kbase", "ksession", MergeMode.KEEP_ALL.toString() ); presenter.setup( containerSpecKey, processConfig ); verify( view ).enableActions(); verify( processConfigPresenter ).setup( containerSpecKey, processConfig ); verify( processConfigPresenter ).setProcessConfig( processConfig ); }
public void setup( final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig ) { this.processConfigPresenter.setup( containerSpecKey, processConfig ); setupView( processConfig ); }
ContainerProcessConfigPresenter { public void setup( final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig ) { this.processConfigPresenter.setup( containerSpecKey, processConfig ); setupView( processConfig ); } }
ContainerProcessConfigPresenter { public void setup( final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig ) { this.processConfigPresenter.setup( containerSpecKey, processConfig ); setupView( processConfig ); } @Inject  ContainerProcessConfigPresenter( final View view,
                                            final ProcessConfigPresenter processConfigPresenter,
                                            final Caller<SpecManagementService> specManagementService,
                                            final Event<NotificationEvent> notification ); }
ContainerProcessConfigPresenter { public void setup( final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig ) { this.processConfigPresenter.setup( containerSpecKey, processConfig ); setupView( processConfig ); } @Inject  ContainerProcessConfigPresenter( final View view,
                                            final ProcessConfigPresenter processConfigPresenter,
                                            final Caller<SpecManagementService> specManagementService,
                                            final Event<NotificationEvent> notification ); @PostConstruct void init(); View getView(); void setup( final ContainerSpecKey containerSpecKey,
                       final ProcessConfig processConfig ); void disable(); void save(); void cancel(); }
ContainerProcessConfigPresenter { public void setup( final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig ) { this.processConfigPresenter.setup( containerSpecKey, processConfig ); setupView( processConfig ); } @Inject  ContainerProcessConfigPresenter( final View view,
                                            final ProcessConfigPresenter processConfigPresenter,
                                            final Caller<SpecManagementService> specManagementService,
                                            final Event<NotificationEvent> notification ); @PostConstruct void init(); View getView(); void setup( final ContainerSpecKey containerSpecKey,
                       final ProcessConfig processConfig ); void disable(); void save(); void cancel();  }