//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); }