AAI-1523 Batch reformat aai-schema-ingest
[aai/aai-common.git] / aai-schema-ingest / src / test / java / org / onap / aai / restclient / SchemaRestClientTest.java
index cd161de..5313407 100644 (file)
  * limitations under the License.
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.aai.restclient;
 
+import java.util.HashMap;
+import java.util.Map;
+
 import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -31,13 +35,12 @@ import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.TestPropertySource;
 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
 
-import java.util.HashMap;
-import java.util.Map;
-
 @Ignore
 @RunWith(SpringJUnit4ClassRunner.class)
-@TestPropertySource(locations = "/schemaService/schema-service-rest.properties" )
-@ContextConfiguration(classes = {RestClientFactoryConfiguration.class, SchemaServiceRestClient.class, RestClientFactory.class, PropertyPasswordConfiguration.class})
+@TestPropertySource(locations = "/schemaService/schema-service-rest.properties")
+@ContextConfiguration(
+        classes = {RestClientFactoryConfiguration.class, SchemaServiceRestClient.class, RestClientFactory.class,
+                PropertyPasswordConfiguration.class})
 
 @SpringBootTest
 public class SchemaRestClientTest {
@@ -47,21 +50,16 @@ public class SchemaRestClientTest {
     private RestClientFactory restClientFactory;
 
     @Test
-    public void  testGetRequestToSchemaService() {
+    public void testGetRequestToSchemaService() {
         ResponseEntity aaiResponse;
         RestClient restClient = null;
 
-            restClient = restClientFactory
-                .getRestClient(SCHEMA_SERVICE);
+        restClient = restClientFactory.getRestClient(SCHEMA_SERVICE);
 
         String uri = "";
         Map<String, String> headersMap = new HashMap<>();
         String content = "";
-        aaiResponse = restClient.execute(
-            uri,
-            HttpMethod.GET,
-            headersMap,
-            content);
-        System.out.println("Helo"+aaiResponse.getStatusCode());
+        aaiResponse = restClient.execute(uri, HttpMethod.GET, headersMap, content);
+        System.out.println("Helo" + aaiResponse.getStatusCode());
     }
 }