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