From 9d08ad57b96cb2562d62981f4dc6b03f0e0cc140 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Wed, 23 Mar 2022 23:41:18 -0300 Subject: [PATCH] Fix failing lock test --- .../test/java/com/wisemapping/test/rest/RestMindmapITCase.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wise-webapp/src/test/java/com/wisemapping/test/rest/RestMindmapITCase.java b/wise-webapp/src/test/java/com/wisemapping/test/rest/RestMindmapITCase.java index 87587723..bc6cf281 100644 --- a/wise-webapp/src/test/java/com/wisemapping/test/rest/RestMindmapITCase.java +++ b/wise-webapp/src/test/java/com/wisemapping/test/rest/RestMindmapITCase.java @@ -23,7 +23,6 @@ import static org.testng.Assert.*; @Test public class RestMindmapITCase { - private static final int SESSION_ID = 100; private String userEmail = "admin@wisemapping.com"; private static final String ICON = "glyphicon glyphicon-tag"; @@ -236,7 +235,7 @@ public class RestMindmapITCase { // Unlock ... HttpEntity lockEntity = new HttpEntity<>("false", lockHeaders); - template.exchange(HOST_PORT + resourceUri + "/locks/{lockid}", HttpMethod.PUT, lockEntity, RestLockInfo.class, SESSION_ID); + template.exchange(HOST_PORT + resourceUri + "/lock", HttpMethod.PUT, lockEntity, RestLockInfo.class); } @Test(dataProviderClass = RestHelper.class, dataProvider = "ContentType-Provider-Function")