public virtual void testEmbeddedSubprocess() { //JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.GetName method: //DeploymentForTenant("tenant1", Model.Bpmn.Bpmn.CreateExecutableProcess(PROCESS_DEFINITION_KEY).StartEvent().SubProcess().EmbeddedSubProcess().StartEvent().ServiceTask().CamundaClass(typeof(AssertingJavaDelegate).FullName).EndEvent().SubProcessDone().EndEvent().Done()); AssertingJavaDelegate.AddAsserts(hasTenantId("tenant1")); startProcessInstance(PROCESS_DEFINITION_KEY); }
public virtual void testConcurrentExecution() { //JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.GetName method: //DeploymentForTenant("tenant1", Model.Bpmn.Bpmn.CreateExecutableProcess(PROCESS_DEFINITION_KEY).StartEvent().ParallelGateway("fork").ServiceTask().CamundaClass(typeof(AssertingJavaDelegate).FullName).ParallelGateway("join").EndEvent().MoveToNode("fork").ServiceTask().CamundaClass(typeof(AssertingJavaDelegate).FullName).connectTo("join").Done()); AssertingJavaDelegate.AddAsserts(hasTenantId("tenant1")); startProcessInstance(PROCESS_DEFINITION_KEY); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void setAuthenticatedTenantForTimerStartEvent() public virtual void setAuthenticatedTenantForTimerStartEvent() { //JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.getName method: testRule.deployForTenant(TENANT_ID, Bpmn.createExecutableProcess("process").startEvent().timerWithDuration("PT1M").serviceTask().camundaClass(typeof(AssertingJavaDelegate).FullName).userTask().endEvent().done()); AssertingJavaDelegate.addAsserts(hasAuthenticatedTenantId(TENANT_ID)); ClockUtil.CurrentTime = tomorrow(); testRule.waitForJobExecutorToProcessAllJobs(); assertThat(engineRule.TaskService.createTaskQuery().count(), @is(1L)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void dontSetAuthenticatedTenantWhileManualJobExecution() public virtual void dontSetAuthenticatedTenantWhileManualJobExecution() { //JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.getName method: testRule.deployForTenant(TENANT_ID, Bpmn.createExecutableProcess("process").startEvent().serviceTask().camundaAsyncBefore().camundaClass(typeof(AssertingJavaDelegate).FullName).endEvent().done()); ProcessInstance processInstance = engineRule.RuntimeService.startProcessInstanceByKey("process"); AssertingJavaDelegate.addAsserts(hasNoAuthenticatedTenantId()); testRule.executeAvailableJobs(); testRule.assertProcessEnded(processInstance.Id); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void setAuthenticatedTenantForIntermediateTimerEvent() public virtual void setAuthenticatedTenantForIntermediateTimerEvent() { //JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.getName method: testRule.deployForTenant(TENANT_ID, Bpmn.createExecutableProcess("process").startEvent().intermediateCatchEvent().timerWithDuration("PT1M").serviceTask().camundaClass(typeof(AssertingJavaDelegate).FullName).endEvent().done()); ProcessInstance processInstance = engineRule.RuntimeService.startProcessInstanceByKey("process"); AssertingJavaDelegate.addAsserts(hasAuthenticatedTenantId(TENANT_ID)); ClockUtil.CurrentTime = tomorrow(); testRule.waitForJobExecutorToProcessAllJobs(); testRule.assertProcessEnded(processInstance.Id); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @After public void tearDown() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: public virtual void tearDown() { AssertingJavaDelegate.clear(); }
protected internal void tearDown() { AssertingJavaDelegate.Clear(); base.TearDown(); }