use of org.onap.so.client.sniro.beans.SniroManagerRequest in project so by onap.
the class SniroClientTestIT method testPostDemands_success.
@Test(expected = Test.None.class)
public void testPostDemands_success() throws BadResponseException, JsonProcessingException {
String mockResponse = "{\"transactionId\": \"123456789\", \"requestId\": \"1234\", \"statusMessage\": \"corys cool\", \"requestStatus\": \"accepted\"}";
wireMockServer.stubFor(post(urlEqualTo("/sniro/api/placement/v2")).willReturn(aResponse().withStatus(200).withHeader("Content-Type", "application/json").withBody(mockResponse)));
client.postDemands(new SniroManagerRequest());
}
Aggregations