Upgrade to E2 spec of 2 May 2019
[portal/ric-dashboard.git] / e2-mgr-client / src / test / java / org / oransc / ric / portal / dashboard / e2mgr / client / test / E2ManagerClientTest.java
  * limitations under the License.
  * ========================LICENSE_END===================================
  */
-package org.oranosc.ric.portal.dashboard.e2mgr.demo;
+package org.oransc.ric.portal.dashboard.e2mgr.client.test;
 
 import org.junit.jupiter.api.Test;
-import org.oranosc.ric.e2mgr.client.api.DefaultApi;
-import org.oranosc.ric.e2mgr.client.invoker.ApiClient;
+import org.oransc.ric.e2mgr.client.api.HealthCheckApi;
+import org.oransc.ric.e2mgr.client.invoker.ApiClient;
 import org.springframework.web.client.RestClientException;
 
 /**
@@ -35,9 +35,9 @@ public class E2ManagerClientTest {
        public void demo() {
                ApiClient apiClient = new ApiClient();
                apiClient.setBasePath("http://localhost:30099/");
-               DefaultApi e2Mgr = new DefaultApi(apiClient);
+               HealthCheckApi e2Health = new HealthCheckApi(apiClient);
                try {
-                       e2Mgr.getHealth();
+                       e2Health.healthCheck();
                        System.out.println("getHealth answered: " + apiClient.getStatusCode().toString());
                } catch (RestClientException e) {
                        System.err.println("getHealth failed: " + e.toString());