KEYCLOAK-4191 Fix for OIDCProtocolMappersTest on mariadb

This commit is contained in:
Hynek Mlnarik 2017-01-30 10:52:17 +01:00
parent b42af99866
commit 4d362fe9ca

View file

@ -154,7 +154,7 @@ public class OIDCProtocolMappersTest extends AbstractKeycloakTest {
Object firstDepartment = idToken.getOtherClaims().get("firstDepartment");
assertThat(firstDepartment, instanceOf(String.class));
assertThat(firstDepartment, is("finance")); // Has to be the first item
assertThat(firstDepartment, anyOf(is("finance"), is("development"))); // Has to be the first item
AccessToken accessToken = oauth.verifyToken(response.getAccessToken());
assertEquals(accessToken.getName(), "Tom Brady");