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 642d733a65
commit 6c2dfd3e35

View File

@@ -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
{