From 6c2dfd3e35983208ac4542a296d5288c5980eb6a Mon Sep 17 00:00:00 2001 From: Tom Page Date: Fri, 10 Nov 2017 16:35:00 +0000 Subject: [PATCH] Fix a test that previously failed to create a security mark. Also refactor an @BeforeClass into an @Test so that if it fails it doesn't kill all subsequent tests (in all subsequent classes). --- .../src/main/java/org/alfresco/rest/core/v0/BaseAPI.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/v0/BaseAPI.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/v0/BaseAPI.java index 3f5f0dbda8..c175ff10bd 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/v0/BaseAPI.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/core/v0/BaseAPI.java @@ -452,7 +452,10 @@ public abstract class BaseAPI { ((HttpEntityEnclosingRequestBase) request).setEntity(new StringEntity(requestParams.toString())); } + LOGGER.info("Sending {} request to {}", requestType.getSimpleName(), requestUrl); + LOGGER.info("Request body: {}", requestParams); response = client.execute(adminUser, adminPassword, request); + LOGGER.info("Response: {}", response.getStatusLine()); try {