Merge pull request #13625 from timis1/JAVA-18149_1
JAVA-18149 Fixing failed integration test
This commit is contained in:
commit
806bb68887
|
@ -132,7 +132,7 @@
|
|||
<properties>
|
||||
<mapdb.version>3.0.8</mapdb.version>
|
||||
<classgraph.version>4.8.153</classgraph.version>
|
||||
<jbpm.version>7.1.0.Final</jbpm.version>
|
||||
<jbpm.version>7.20.0.Final</jbpm.version>
|
||||
<picocli.version>4.7.0</picocli.version>
|
||||
<chronicle.map.version>3.24ea1</chronicle.map.version>
|
||||
<crawler4j.version>4.4.0</crawler4j.version>
|
||||
|
|
|
@ -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" >
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue