@Test public void testBuildProcessConfig2() { when( view.getRuntimeStrategy() ).thenReturn( Constants.ClientRuntimeStrategy_PerProcessInstance ); when( view.getKBase() ).thenReturn( "b" ); when( view.getKSession() ).thenReturn( "c" ); when( view.getMergeMode() ).thenReturn( Constants.ClientMergeMode_MergeCollections ); final ProcessConfig processConfig = presenter.buildProcessConfig(); assertEquals( "PER_PROCESS_INSTANCE", processConfig.getRuntimeStrategy() ); assertEquals( "b", processConfig.getKBase() ); assertEquals( "c", processConfig.getKSession() ); assertEquals( "MERGE_COLLECTIONS", processConfig.getMergeMode() ); }
public ProcessConfig buildProcessConfig() { return new ProcessConfig(ClientRuntimeStrategy.convert(view.getRuntimeStrategy(), view.getTranslationService()).getRuntimeStrategy().toString(), view.getKBase(), view.getKSession(), ClientMergeMode.convert(view.getMergeMode(), view.getTranslationService()).getMergeMode().toString()); }
ProcessConfigPresenter { public ProcessConfig buildProcessConfig() { return new ProcessConfig(ClientRuntimeStrategy.convert(view.getRuntimeStrategy(), view.getTranslationService()).getRuntimeStrategy().toString(), view.getKBase(), view.getKSession(), ClientMergeMode.convert(view.getMergeMode(), view.getTranslationService()).getMergeMode().toString()); } }
ProcessConfigPresenter { public ProcessConfig buildProcessConfig() { return new ProcessConfig(ClientRuntimeStrategy.convert(view.getRuntimeStrategy(), view.getTranslationService()).getRuntimeStrategy().toString(), view.getKBase(), view.getKSession(), ClientMergeMode.convert(view.getMergeMode(), view.getTranslationService()).getMergeMode().toString()); } @Inject  ProcessConfigPresenter(final View view, Caller<DeploymentDescriptorService> deploymentDescriptorService); }
ProcessConfigPresenter { public ProcessConfig buildProcessConfig() { return new ProcessConfig(ClientRuntimeStrategy.convert(view.getRuntimeStrategy(), view.getTranslationService()).getRuntimeStrategy().toString(), view.getKBase(), view.getKSession(), ClientMergeMode.convert(view.getMergeMode(), view.getTranslationService()).getMergeMode().toString()); } @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 ProcessConfig buildProcessConfig() { return new ProcessConfig(ClientRuntimeStrategy.convert(view.getRuntimeStrategy(), view.getTranslationService()).getRuntimeStrategy().toString(), view.getKBase(), view.getKSession(), ClientMergeMode.convert(view.getMergeMode(), view.getTranslationService()).getMergeMode().toString()); } @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();  }