X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=a1-med-client%2Fsrc%2Ftest%2Fjava%2Forg%2Foransc%2Fric%2Fportal%2Fdashboard%2Fa1med%2Fclient%2Ftest%2FA1MediatorClientTest.java;h=c09858edf7fa61650da7846154907ce3cdbbc482;hb=7845281a4bdb97925cba281f133ef058f15a1f95;hp=d1ffdbf41bf74b48ac86692a3a7a67bcb49f0f3a;hpb=ace0b71ff6e424193ff6d6519a529d279e7ade58;p=portal%2Fric-dashboard.git diff --git a/a1-med-client/src/test/java/org/oransc/ric/portal/dashboard/a1med/client/test/A1MediatorClientTest.java b/a1-med-client/src/test/java/org/oransc/ric/portal/dashboard/a1med/client/test/A1MediatorClientTest.java index d1ffdbf4..c09858ed 100644 --- a/a1-med-client/src/test/java/org/oransc/ric/portal/dashboard/a1med/client/test/A1MediatorClientTest.java +++ b/a1-med-client/src/test/java/org/oransc/ric/portal/dashboard/a1med/client/test/A1MediatorClientTest.java @@ -1,6 +1,6 @@ /*- * ========================LICENSE_START================================= - * ORAN-OSC + * O-RAN-SC * %% * Copyright (C) 2019 AT&T Intellectual Property and Nokia * %% @@ -19,6 +19,7 @@ */ package org.oransc.ric.portal.dashboard.a1med.client.test; +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.oransc.ric.a1med.client.api.A1MediatorApi; import org.oransc.ric.a1med.client.invoker.ApiClient; @@ -39,6 +40,7 @@ public class A1MediatorClientTest { try { a1Api.a1ControllerGetHandler("policy"); System.out.println("getPolicy answered: " + apiClient.getStatusCode().toString()); + Assertions.assertTrue(apiClient.getStatusCode().is2xxSuccessful()); } catch (RestClientException e) { System.err.println("getPolicy failed: " + e.toString()); }