Replaced all tabs with spaces in java and pom.xml
[so.git] / asdc-controller / src / test / java / org / onap / so / asdc / client / test / rest / HealthCheckTest.java
index cd2c3ee..adc5593 100644 (file)
@@ -38,28 +38,27 @@ import org.springframework.test.context.ActiveProfiles;
 import org.springframework.test.context.junit4.SpringRunner;
 
 public class HealthCheckTest extends BaseTest {
-       
-       @LocalServerPort
-       private int port;
 
-       TestRestTemplate restTemplate = new TestRestTemplate();
+    @LocalServerPort
+    private int port;
 
-       HttpHeaders headers = new HttpHeaders();
-       
-       @Test
-       public void testHealthcheck() throws JSONException {
+    TestRestTemplate restTemplate = new TestRestTemplate();
 
-               HttpEntity<String> entity = new HttpEntity<String>(null, headers);
+    HttpHeaders headers = new HttpHeaders();
 
-               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;
-       }
+    @Test
+    public void testHealthcheck() throws JSONException {
+
+        HttpEntity<String> entity = new HttpEntity<String>(null, headers);
+
+        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;
+    }
 
 }