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;h=14e52584f61d12539819968815e5fd4531455041;hb=44203c43bb16a87eb54cc97431a026e111842c97;hp=7916cb982132b387ed4f9ebace3756f9bdcf7fb0;hpb=4d6f9a14931a6aaaab28b482d73380e0960a82d6;p=portal%2Fric-dashboard.git diff --git a/e2-mgr-client/src/test/java/org/oransc/ric/portal/dashboard/e2mgr/client/test/E2ManagerClientTest.java b/e2-mgr-client/src/test/java/org/oransc/ric/portal/dashboard/e2mgr/client/test/E2ManagerClientTest.java index 7916cb98..14e52584 100644 --- a/e2-mgr-client/src/test/java/org/oransc/ric/portal/dashboard/e2mgr/client/test/E2ManagerClientTest.java +++ b/e2-mgr-client/src/test/java/org/oransc/ric/portal/dashboard/e2mgr/client/test/E2ManagerClientTest.java @@ -2,7 +2,7 @@ * ========================LICENSE_START================================= * 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; @@ -39,6 +40,7 @@ public class E2ManagerClientTest { try { 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()); }