aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpAsdcClientResponseTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpAsdcClientResponseTest.java')
-rw-r--r--sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpAsdcClientResponseTest.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpAsdcClientResponseTest.java b/sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpAsdcClientResponseTest.java
index 8a912d9..4ff01c5 100644
--- a/sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpAsdcClientResponseTest.java
+++ b/sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpAsdcClientResponseTest.java
@@ -33,8 +33,7 @@ import org.junit.jupiter.params.provider.MethodSource;
import org.mockito.junit.jupiter.MockitoExtension;
@ExtendWith(MockitoExtension.class)
-class HttpAsdcClientResponseTest {
-
+class HttpSdcClientResponseTest {
public static Collection<Object[]> data() {
return Arrays.asList(new Object[][]{
{HttpStatus.SC_INTERNAL_SERVER_ERROR, "failed to send request"},
@@ -47,14 +46,14 @@ class HttpAsdcClientResponseTest {
@MethodSource("data")
void shouldCreateHttpResponse(int httpStatusCode, String httpMessage) throws IOException {
// when
- final HttpAsdcResponse response = HttpAsdcClient.createHttpResponse(httpStatusCode, httpMessage);
+ final HttpSdcResponse response = HttpSdcClient.createHttpResponse(httpStatusCode, httpMessage);
// then
assertEquals(httpStatusCode, response.getStatus());
assertEquals(httpMessage, getResponseMessage(response));
}
- private String getResponseMessage(HttpAsdcResponse response) throws IOException {
+ private String getResponseMessage(HttpSdcResponse response) throws IOException {
return IOUtils.toString(response.getMessage().getContent(), StandardCharsets.UTF_8);
}
-}
+ }