diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/scim2/SCIM2UserTestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/scim2/SCIM2UserTestCase.java index 8112712f158..df7f584a172 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/scim2/SCIM2UserTestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/scim2/SCIM2UserTestCase.java @@ -19,6 +19,8 @@ package org.wso2.identity.integration.test.scim2; import org.apache.commons.codec.binary.Base64; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; import org.apache.http.HttpHeaders; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpDelete; @@ -71,6 +73,7 @@ public class SCIM2UserTestCase extends ISIntegrationTest { + private static Log LOG = LogFactory.getLog(SCIM2UserTestCase.class); private static final String FAMILY_NAME_CLAIM_VALUE = "scim"; private static final String GIVEN_NAME_CLAIM_VALUE = "user"; private static final String FAMILY_NAME_CLAIM_VALUE_1 = "scim1"; @@ -262,6 +265,8 @@ public void testAddUserFailure() throws Exception { Object responseObj = JSONValue.parse(EntityUtils.toString(response.getEntity())); EntityUtils.consume(response.getEntity()); + LOG.info("Response of testAddUserFailure method:" + responseObj.toString()); + JSONArray schemasArray = (JSONArray)((JSONObject) responseObj).get("schemas"); Assert.assertNotNull(schemasArray); Assert.assertEquals(schemasArray.size(), 1);