Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VEND-58: Fix bad sort assertion logic #1

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -727,7 +727,7 @@ public ArrayList<TestResult> 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);
Expand Down