Replaced all tabs with spaces in java and pom.xml
[so.git] / adapters / mso-vfc-adapter / src / test / java / org / onap / so / adapters / vfc / rest / HealthCheckHandlerTest.java
index 02922db..fe2bd0b 100644 (file)
 package org.onap.so.adapters.vfc.rest;
 
 import static org.junit.Assert.*;
-
-
-
 import javax.ws.rs.core.Response;
-
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.onap.so.adapters.vfc.MSOVfcApplication;
@@ -45,28 +41,27 @@ import org.springframework.test.context.junit4.SpringRunner;
 @SpringBootTest(classes = MSOVfcApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
 @ActiveProfiles("test")
 public class HealthCheckHandlerTest {
-       
-       @LocalServerPort
-       private int port;
 
-       TestRestTemplate restTemplate = new TestRestTemplate();
+    @LocalServerPort
+    private int port;
+
+    TestRestTemplate restTemplate = new TestRestTemplate();
+
+    HttpHeaders headers = new HttpHeaders();
+
+
+    @Test
+    public void testHealthcheck() throws JSONException {
 
-       HttpHeaders headers = new HttpHeaders();
+        HttpEntity<String> entity = new HttpEntity<String>(null, headers);
 
-       
-       @Test
-       public void testHealthcheck() throws JSONException {
+        ResponseEntity<String> response =
+                restTemplate.exchange(createURLWithPort("manage/health"), HttpMethod.GET, entity, String.class);
 
-               HttpEntity<String> entity = new HttpEntity<String>(null, headers);
+        assertEquals(Response.Status.OK.getStatusCode(), response.getStatusCode().value());
+    }
 
-               ResponseEntity<String> response = restTemplate.exchange(
-                               createURLWithPort("manage/health"),
-                               HttpMethod.GET, entity, String.class);
-               
-               assertEquals(Response.Status.OK.getStatusCode(),response.getStatusCode().value());
-       }
-       
-       private String createURLWithPort(String uri) {
-               return "http://localhost:" + port + uri;
-       }
+    private String createURLWithPort(String uri) {
+        return "http://localhost:" + port + uri;
+    }
 }