Commit 2c0d2d05 authored by Aalekh Jain's avatar Aalekh Jain
Browse files

Moved method `getWorkflowInfoFromCreateWorkflowResponseBody` to testbase

parent 91277895
......@@ -17,7 +17,6 @@
package org.opengroup.osdu.workflow.workflow.v3;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.sun.jersey.api.client.ClientResponse;
import org.apache.commons.lang3.StringUtils;
......@@ -441,8 +440,4 @@ public abstract class WorkflowV3IntegrationTests extends TestBase {
);
assertTrue(HttpStatus.SC_FORBIDDEN == response.getStatus() || HttpStatus.SC_UNAUTHORIZED == response.getStatus());
}
private Map<String, String> getWorkflowInfoFromCreateWorkflowResponseBody(String responseBody) throws JsonProcessingException {
return new ObjectMapper().readValue(responseBody, HashMap.class);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment