JAVA-18149 Fixing failed integration test

This commit is contained in:
timis1
2023-03-12 00:26:28 +02:00
committed by n
parent fb7a8aea5e
commit 4f6ceb88cd
3 changed files with 6 additions and 3 deletions

View File

@@ -15,7 +15,7 @@
<process processType="Private" isExecutable="true" id="com.baeldung.bpmn.helloworld" name="HelloWorld Process" tns:packageName="com.baeldung.bpmn.process" >
<!-- nodes -->
<scriptTask id="_jbpm-unique-1" name="HelloWorld" scriptFormat="http://www.java.com/java" >
<scriptTask id="_jbpm-unique-1" name="HelloWorld">
<script>System.out.println("Hello World");</script>
</scriptTask>
<endEvent id="_jbpm-unique-2" name="End" >

View File

@@ -1,5 +1,8 @@
package com.baeldung.jbpm;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.jbpm.test.JbpmJUnitBaseTestCase;
import org.junit.After;
import org.junit.Before;
@@ -47,6 +50,6 @@ public class WorkflowEngineIntegrationTest extends JbpmJUnitBaseTestCase {
@Test
public void givenProcessInstance_whenExecutionCompleted_thenVerifyProcessInstanceStatus() {
assertProcessInstanceCompleted(processInstance.getId(), ksession);
assertTrue("ProcessInstance completed with status 2", processInstance.getState() == 2);
assertEquals("ProcessInstance completed with status 2", 2, processInstance.getState());
}
}