//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test @OperateOnDeployment("test1") public void testNonExistingEngineRetrieval() public virtual void testNonExistingEngineRetrieval() { ProcessEngineService engineService = BpmPlatform.ProcessEngineService; ProcessEngine engine = engineService.getProcessEngine("aNonExistingEngineName"); Assert.assertNull(engine); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setEngines() public virtual void setEngines() { ProcessEngineService engineService = BpmPlatform.ProcessEngineService; engine1 = engineService.getProcessEngine("engine1"); engine1Configuration = ((ProcessEngineImpl)engine1).ProcessEngineConfiguration; }
public virtual ProcessEngine processEngine(InjectionPoint ip) { ProcessEngineName annotation = ip.Annotated.getAnnotation(typeof(ProcessEngineName)); string processEngineName = annotation.value(); if (string.ReferenceEquals(processEngineName, null) || processEngineName.Length == 0) { throw new ProcessEngineException("Cannot determine which process engine to inject: @ProcessEngineName must specify the name of a process engine."); } try { ProcessEngineService processEngineService = BpmPlatform.ProcessEngineService; return(processEngineService.getProcessEngine(processEngineName)); } catch (Exception e) { throw new ProcessEngineException("Cannot find process engine named '" + processEngineName + "' specified using @ProcessEngineName: " + e.Message, e); } }
public virtual ProcessEngine getProcessEngine(string name) { return(processEngineServiceDelegate.getProcessEngine(name)); }