Add license and drop extra WS from tox.ini
[portal/ric-dashboard.git] / anr-xapp-client / src / test / java / org / oransc / ric / portal / dashboard / anrxapp / client / test / AnrXappClientTest.java
index eee796e..c9b435e 100644 (file)
@@ -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.anrxapp.client.test;
 
+import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Test;
 import org.oransc.ric.anrxapp.client.api.HealthApi;
 import org.oransc.ric.anrxapp.client.invoker.ApiClient;
@@ -39,6 +40,7 @@ public class AnrXappClientTest {
                try {
                        healthApi.getHealthAlive();
                        System.out.println("getHealthAlive answered: " + apiClient.getStatusCode().toString());
+                       Assertions.assertTrue(apiClient.getStatusCode().is2xxSuccessful());
                } catch (RestClientException e) {
                        System.err.println("getHealthAlive failed: " + e.toString());
                }