KEYCLOAK-5414 fix AccountRestServiceTest on undertow (#4460)
This commit is contained in:
parent
1fb8846a7a
commit
0a5de1239f
1 changed files with 3 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue