From dad356458493be613153083f5c93c17f0b4828e8 Mon Sep 17 00:00:00 2001 From: timis1 Date: Sun, 12 Mar 2023 00:26:28 +0200 Subject: [PATCH] JAVA-18149 Fixing failed integration test --- libraries-2/pom.xml | 2 +- .../src/main/resources/com/baeldung/process/helloworld.bpmn | 2 +- .../com/baeldung/jbpm/WorkflowEngineIntegrationTest.java | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libraries-2/pom.xml b/libraries-2/pom.xml index 1d5cde75a2..d9b0545d54 100644 --- a/libraries-2/pom.xml +++ b/libraries-2/pom.xml @@ -132,7 +132,7 @@ 3.0.8 4.8.153 - 7.1.0.Final + 7.20.0.Final 4.7.0 3.24ea1 4.4.0 diff --git a/libraries-2/src/main/resources/com/baeldung/process/helloworld.bpmn b/libraries-2/src/main/resources/com/baeldung/process/helloworld.bpmn index 30813b2057..66f402f942 100644 --- a/libraries-2/src/main/resources/com/baeldung/process/helloworld.bpmn +++ b/libraries-2/src/main/resources/com/baeldung/process/helloworld.bpmn @@ -15,7 +15,7 @@ - + diff --git a/libraries-2/src/test/java/com/baeldung/jbpm/WorkflowEngineIntegrationTest.java b/libraries-2/src/test/java/com/baeldung/jbpm/WorkflowEngineIntegrationTest.java index ded46d7639..65195e55d6 100644 --- a/libraries-2/src/test/java/com/baeldung/jbpm/WorkflowEngineIntegrationTest.java +++ b/libraries-2/src/test/java/com/baeldung/jbpm/WorkflowEngineIntegrationTest.java @@ -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()); } }