//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldNotAutoActivateIfConfigured() public virtual void shouldNotAutoActivateIfConfigured() { // given JobExecutorXmlImpl jobExecutorXml = defineJobExecutor(); ProcessEngineXmlImpl processEngineXml = defineProcessEngine(); // activate set to false processEngineXml.Properties["jobExecutorActivate"] = "false"; BpmPlatformXmlImpl bpmPlatformXml = new BpmPlatformXmlImpl(jobExecutorXml, Collections.singletonList <ProcessEngineXml>(processEngineXml)); // when deployPlatform(bpmPlatformXml); try { ProcessEngine processEngine = getProcessEngine(ENGINE_NAME); ProcessEngineConfigurationImpl processEngineConfiguration = (ProcessEngineConfigurationImpl)processEngine.ProcessEngineConfiguration; // then assertEquals(false, processEngineConfiguration.JobExecutor.Active); } finally { undeployPlatform(); } }
private void deployPlatform(BpmPlatformXmlImpl bpmPlatformXml) { RuntimeContainerDelegateImpl containerDelegate = (RuntimeContainerDelegateImpl)org.camunda.bpm.container.RuntimeContainerDelegate_Fields.INSTANCE.get(); containerDelegate.ServiceContainer.createDeploymentOperation("deploy BPM platform").addAttachment(Attachments.BPM_PLATFORM_XML, bpmPlatformXml).addStep(new StartManagedThreadPoolStep()).addStep(new StartJobExecutorStep()).addStep(new PlatformXmlStartProcessEnginesStep()).execute(); }