X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=e2-mgr-client%2Fsrc%2Ftest%2Fjava%2Forg%2Foransc%2Fric%2Fportal%2Fdashboard%2Fe2mgr%2Fclient%2Ftest%2FE2ManagerClientTest.java;fp=e2-mgr-client%2Fsrc%2Ftest%2Fjava%2Forg%2Foranosc%2Fric%2Fportal%2Fdashboard%2Fe2mgr%2Fdemo%2FE2ManagerClientTest.java;h=fa48e693054d7bf45afb906b7c3b792404ccb2bc;hb=f660cae7a447b60d84ef75f7c2bcbf62412d4579;hp=56e6cfcf6eb1a43ea973dfe2632f764df830dbcc;hpb=0f3312b36f849df0e1671c333e0072aca3a1acf6;p=portal%2Fric-dashboard.git diff --git a/e2-mgr-client/src/test/java/org/oranosc/ric/portal/dashboard/e2mgr/demo/E2ManagerClientTest.java b/e2-mgr-client/src/test/java/org/oransc/ric/portal/dashboard/e2mgr/client/test/E2ManagerClientTest.java similarity index 84% rename from e2-mgr-client/src/test/java/org/oranosc/ric/portal/dashboard/e2mgr/demo/E2ManagerClientTest.java rename to e2-mgr-client/src/test/java/org/oransc/ric/portal/dashboard/e2mgr/client/test/E2ManagerClientTest.java index 56e6cfcf..fa48e693 100644 --- a/e2-mgr-client/src/test/java/org/oranosc/ric/portal/dashboard/e2mgr/demo/E2ManagerClientTest.java +++ b/e2-mgr-client/src/test/java/org/oransc/ric/portal/dashboard/e2mgr/client/test/E2ManagerClientTest.java @@ -17,11 +17,11 @@ * 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());