From c4cc752e1893a4836c03fd00685077d8eba43ede Mon Sep 17 00:00:00 2001 From: filipelautert Date: Mon, 2 Oct 2017 09:59:33 -0300 Subject: [PATCH] Fixing tests for Oracle (#4481) --- .../org/keycloak/testsuite/oauth/OIDCProtocolMappersTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/oauth/OIDCProtocolMappersTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/oauth/OIDCProtocolMappersTest.java index d281196642..61d8945004 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/oauth/OIDCProtocolMappersTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/oauth/OIDCProtocolMappersTest.java @@ -52,7 +52,7 @@ import static org.hamcrest.Matchers.containsInAnyOrder; import static org.hamcrest.Matchers.hasItems; import static org.hamcrest.Matchers.instanceOf; import static org.hamcrest.Matchers.is; -import static org.hamcrest.Matchers.isEmptyString; +import static org.hamcrest.Matchers.isEmptyOrNullString; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; @@ -266,7 +266,7 @@ public class OIDCProtocolMappersTest extends AbstractKeycloakTest { IDToken idToken = oauth.verifyIDToken(response.getIdToken()); Object empty = idToken.getOtherClaims().get("empty"); - assertThat((empty == null ? null : (String) empty), isEmptyString()); + assertThat((empty == null ? null : (String) empty), isEmptyOrNullString()); Object nulll = idToken.getOtherClaims().get("null"); assertNull(nulll);