* 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;
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 {
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());
}
}