@Test public void testSetup() { final ContainerSpecKey containerSpecKey = new ContainerSpecKey(); final ProcessConfig processConfig = new ProcessConfig( ClientRuntimeStrategy.PER_CASE.toString(), "kBase", "kSession", ClientMergeMode.KEEP_ALL.toString() ); presenter.setup( containerSpecKey, processConfig ); verify( view ).setContent( ClientRuntimeStrategy.PER_CASE.getValue( translationService ), processConfig.getKBase(), processConfig.getKSession(), ClientMergeMode.convert( processConfig.getMergeMode(), translationService ).getValue( translationService ) ); assertEquals( containerSpecKey, presenter.getContainerSpecKey() ); assertEquals( processConfig, presenter.getProcessConfig() ); presenter.clear(); assertNull( presenter.getContainerSpecKey() ); assertNull( presenter.getProcessConfig() ); }
public void setup(final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig) { this.processConfig = checkNotNull("processConfig", processConfig); this.containerSpecKey = checkNotNull("containerSpecKey", containerSpecKey); setupView(processConfig); }
ProcessConfigPresenter { public void setup(final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig) { this.processConfig = checkNotNull("processConfig", processConfig); this.containerSpecKey = checkNotNull("containerSpecKey", containerSpecKey); setupView(processConfig); } }
ProcessConfigPresenter { public void setup(final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig) { this.processConfig = checkNotNull("processConfig", processConfig); this.containerSpecKey = checkNotNull("containerSpecKey", containerSpecKey); setupView(processConfig); } @Inject  ProcessConfigPresenter(final View view, Caller<DeploymentDescriptorService> deploymentDescriptorService); }
ProcessConfigPresenter { public void setup(final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig) { this.processConfig = checkNotNull("processConfig", processConfig); this.containerSpecKey = checkNotNull("containerSpecKey", containerSpecKey); setupView(processConfig); } @Inject  ProcessConfigPresenter(final View view, Caller<DeploymentDescriptorService> deploymentDescriptorService); @PostConstruct void init(); View getView(); void setup(final ContainerSpecKey containerSpecKey,
                      final ProcessConfig processConfig); void clear(); void setProcessConfig(final ProcessConfig processConfig); ContainerSpecKey getContainerSpecKey(); ProcessConfig getProcessConfig(); void disable(); void cancel(); ProcessConfig buildProcessConfig(); List<String> getRuntimeStrategies(); List<String> getMergeModes(); }
ProcessConfigPresenter { public void setup(final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig) { this.processConfig = checkNotNull("processConfig", processConfig); this.containerSpecKey = checkNotNull("containerSpecKey", containerSpecKey); setupView(processConfig); } @Inject  ProcessConfigPresenter(final View view, Caller<DeploymentDescriptorService> deploymentDescriptorService); @PostConstruct void init(); View getView(); void setup(final ContainerSpecKey containerSpecKey,
                      final ProcessConfig processConfig); void clear(); void setProcessConfig(final ProcessConfig processConfig); ContainerSpecKey getContainerSpecKey(); ProcessConfig getProcessConfig(); void disable(); void cancel(); ProcessConfig buildProcessConfig(); List<String> getRuntimeStrategies(); List<String> getMergeModes();  }