//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Deployment public void testVariableListenerByScript() public virtual void testVariableListenerByScript() { caseService.withCaseDefinitionByKey("case").create(); CaseExecution taskExecution = caseService.createCaseExecutionQuery().activityId("PI_HumanTask_1").singleResult(); assertNotNull(taskExecution); // when i create a variable on the human task caseService.withCaseExecution(taskExecution.Id).setVariableLocal("aTaskVariable", "aTaskValue").execute(); // then the listener is invoked assertTrue(SimpleBean.wasStaticallyInvoked()); SimpleBean.reset(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Deployment public void testVariableListenerByExpression() public virtual void testVariableListenerByExpression() { SimpleBean simpleBean = new SimpleBean(); beans["bean"] = simpleBean; caseService.withCaseDefinitionByKey("case").create(); CaseExecution taskExecution = caseService.createCaseExecutionQuery().activityId("PI_HumanTask_1").singleResult(); assertNotNull(taskExecution); // when i create a variable on the human task caseService.withCaseExecution(taskExecution.Id).setVariableLocal("aTaskVariable", "aTaskValue").execute(); // then the listener is invoked assertTrue(simpleBean.wasInvoked()); }