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).
This commit is contained in:
Tom Page
2017-11-10 16:35:00 +00:00
parent ed4f591fd8
commit 5b510cafb4

View File

@@ -452,7 +452,10 @@ public abstract class BaseAPI
{ {
((HttpEntityEnclosingRequestBase) request).setEntity(new StringEntity(requestParams.toString())); ((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); response = client.execute(adminUser, adminPassword, request);
LOGGER.info("Response: {}", response.getStatusLine());
try try
{ {