Drop Nokia from file header copyright line
[portal/ric-dashboard.git] / e2-mgr-client / src / test / java / org / oransc / ric / portal / dashboard / e2mgr / client / test / E2ManagerClientTest.java
index fa48e69..14e5258 100644 (file)
@@ -1,8 +1,8 @@
 /*-
  * ========================LICENSE_START=================================
- * ORAN-OSC
+ * O-RAN-SC
  * %%
- * Copyright (C) 2019 AT&T Intellectual Property and Nokia
+ * Copyright (C) 2019 AT&T Intellectual Property
  * %%
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
  */
 package org.oransc.ric.portal.dashboard.e2mgr.client.test;
 
+import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Test;
 import org.oransc.ric.e2mgr.client.api.HealthCheckApi;
 import org.oransc.ric.e2mgr.client.invoker.ApiClient;
@@ -35,10 +36,11 @@ public class E2ManagerClientTest {
        public void demo() {
                ApiClient apiClient = new ApiClient();
                apiClient.setBasePath("http://localhost:30099/");
-               HealthCheckApi e2Health = new HealthCheckApi(apiClient);
+               HealthCheckApi healthApi = new HealthCheckApi(apiClient);
                try {
-                       e2Health.healthCheck();
+                       healthApi.healthGet();
                        System.out.println("getHealth answered: " + apiClient.getStatusCode().toString());
+                       Assertions.assertTrue(apiClient.getStatusCode().is2xxSuccessful());
                } catch (RestClientException e) {
                        System.err.println("getHealth failed: " + e.toString());
                }