aboutsummaryrefslogtreecommitdiffstats
path: root/aai-resources/src/test/java/org/onap/aai/rest/PserverWrongHeaderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'aai-resources/src/test/java/org/onap/aai/rest/PserverWrongHeaderTest.java')
-rw-r--r--aai-resources/src/test/java/org/onap/aai/rest/PserverWrongHeaderTest.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/aai-resources/src/test/java/org/onap/aai/rest/PserverWrongHeaderTest.java b/aai-resources/src/test/java/org/onap/aai/rest/PserverWrongHeaderTest.java
index a1b8cec..4c93f58 100644
--- a/aai-resources/src/test/java/org/onap/aai/rest/PserverWrongHeaderTest.java
+++ b/aai-resources/src/test/java/org/onap/aai/rest/PserverWrongHeaderTest.java
@@ -27,7 +27,11 @@ import static org.junit.Assert.assertThat;
import java.util.UUID;
import org.junit.Test;
-import org.springframework.http.*;
+import org.springframework.http.HttpEntity;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpMethod;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
public class PserverWrongHeaderTest extends AbstractSpringRestTest {
@@ -36,11 +40,11 @@ public class PserverWrongHeaderTest extends AbstractSpringRestTest {
HttpHeaders httpHeaders = new HttpHeaders();
- httpEntity = new HttpEntity(httpHeaders);
+ httpEntity = new HttpEntity<String>(httpHeaders);
String endpoint = "/aai/v11/cloud-infrastructure/pservers/pserver/test" + UUID.randomUUID().toString();
- ResponseEntity responseEntity;
+ ResponseEntity<String> responseEntity;
responseEntity = restTemplate.exchange(baseUrl + endpoint, HttpMethod.GET, httpEntity, String.class);
String body = responseEntity.getBody().toString();