From 0a5de1239fb1e96eb91321f77cc117d22aac6f0c Mon Sep 17 00:00:00 2001 From: vramik Date: Thu, 7 Sep 2017 09:30:20 +0200 Subject: [PATCH] KEYCLOAK-5414 fix AccountRestServiceTest on undertow (#4460) --- .../keycloak/testsuite/account/AccountRestServiceTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/account/AccountRestServiceTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/account/AccountRestServiceTest.java index e4f4ec1a79..47ed56fa39 100755 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/account/AccountRestServiceTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/account/AccountRestServiceTest.java @@ -37,8 +37,10 @@ import java.io.IOException; import java.util.Collections; import java.util.List; +import static org.hamcrest.Matchers.containsInAnyOrder; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; /** @@ -110,8 +112,7 @@ public class AccountRestServiceTest extends AbstractTestRealmKeycloakTest { assertEquals(1, user.getAttributes().size()); assertEquals(2, user.getAttributes().get("attr2").size()); - assertEquals("val2", user.getAttributes().get("attr2").get(0)); - assertEquals("val3", user.getAttributes().get("attr2").get(1)); + assertThat(user.getAttributes().get("attr2"), containsInAnyOrder("val2", "val3")); // Update email user.setEmail("bobby@localhost");