//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(); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setUp() public virtual void setUp() { step = new StartManagedThreadPoolStep(); deploymentOperation = new DeploymentOperation("name", container, System.Linq.Enumerable.Empty <DeploymentOperationStep> ()); jobExecutorXml = new JobExecutorXmlImpl(); bpmPlatformXml = new BpmPlatformXmlImpl(jobExecutorXml, System.Linq.Enumerable.Empty <ProcessEngineXml>()); deploymentOperation.addAttachment(Attachments.BPM_PLATFORM_XML, bpmPlatformXml); }
private JobExecutorXmlImpl defineJobExecutor() { JobAcquisitionXmlImpl jobAcquisition = new JobAcquisitionXmlImpl(); jobAcquisition.Properties = new Dictionary <string, string>(); jobAcquisition.Name = ACQUISITION_NAME; JobExecutorXmlImpl jobExecutorXml = new JobExecutorXmlImpl(); jobExecutorXml.Properties = new Dictionary <string, string>(); jobExecutorXml.JobAcquisitions = Collections.singletonList <JobAcquisitionXml>(jobAcquisition); return(jobExecutorXml); }