From 82f7d059564bfda568f0e1d05a3ce84d3eada83a Mon Sep 17 00:00:00 2001 From: Guillaume Renard Date: Thu, 13 Jun 2024 19:45:15 +0200 Subject: [PATCH] VEND-58: Fix bad sort assertion logic --- .../scim2/testsuite/core/tests/UserTestImpl.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/org.wso2.scim2.testsuite.core/src/main/java/org/wso2/scim2/testsuite/core/tests/UserTestImpl.java b/components/org.wso2.scim2.testsuite.core/src/main/java/org/wso2/scim2/testsuite/core/tests/UserTestImpl.java index d73e998..fa5b657 100644 --- a/components/org.wso2.scim2.testsuite.core/src/main/java/org/wso2/scim2/testsuite/core/tests/UserTestImpl.java +++ b/components/org.wso2.scim2.testsuite.core/src/main/java/org/wso2/scim2/testsuite/core/tests/UserTestImpl.java @@ -18,6 +18,11 @@ package org.wso2.scim2.testsuite.core.tests; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + import org.apache.commons.lang.StringUtils; import org.apache.http.Header; import org.apache.http.HttpEntity; @@ -52,11 +57,6 @@ import org.wso2.scim2.testsuite.core.tests.model.RequestPath; import org.wso2.scim2.testsuite.core.utils.ComplianceConstants; -import java.nio.charset.StandardCharsets; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; - /** * Implementation of User test cases. */ @@ -727,7 +727,7 @@ public ArrayList getMethodTest() throws GeneralComplianceException, case "Sort users by user id without pagination and " + "filtering params": try { - if (isUserListSorted(userList)) { + if (!isUserListSorted(userList)) { addAssertion(ComplianceConstants.TestConstants.SORT_USERS_TEST, "Check the created 5 users are sorted or not.", ComplianceConstants.TestConstants.STATUS_FAILED, subTests);