Java 17 / Spring 6 / Spring Boot 3 Upgrade
[policy/pap.git] / main / src / test / java / org / onap / policy / pap / main / rest / TestPolicyComponentsHealthCheckControllerV1.java
index ff91ebe..b092807 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2019-2020, 2022 Nordix Foundation.
+ *  Copyright (C) 2019-2020, 2022-2023 Nordix Foundation.
  *  Modifications Copyright (C) 2020-2021 AT&T Inc.
  *  Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
  * ================================================================================
 
 package org.onap.policy.pap.main.rest;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
 
+import jakarta.ws.rs.client.Invocation;
+import jakarta.ws.rs.core.GenericType;
+import jakarta.ws.rs.core.Response;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
-import javax.ws.rs.client.Invocation;
-import javax.ws.rs.core.GenericType;
-import javax.ws.rs.core.Response;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 import org.onap.policy.common.endpoints.parameters.RestClientParameters;
 import org.onap.policy.pap.main.parameters.PapParameterGroup;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -43,7 +43,7 @@ import org.springframework.test.context.ActiveProfiles;
  * @author Yehui Wang (yehui.wang@est.tech)
  */
 @ActiveProfiles({ "test", "default" })
-public class TestPolicyComponentsHealthCheckControllerV1 extends CommonPapRestServer {
+class TestPolicyComponentsHealthCheckControllerV1 extends CommonPapRestServer {
 
     private static final String ENDPOINT = "components/healthcheck";
     private List<RestClientParameters> savedRestClientParameters;
@@ -52,13 +52,13 @@ public class TestPolicyComponentsHealthCheckControllerV1 extends CommonPapRestSe
     private PapParameterGroup papParameterGroup;
 
     @Test
-    public void testSwagger() throws Exception {
+    void testSwagger() throws Exception {
         super.testSwagger(ENDPOINT);
     }
 
     @Test
     @SuppressWarnings("unchecked")
-    public void testPolicyComponentsHealthCheck() throws Exception {
+    void testPolicyComponentsHealthCheck() throws Exception {
         // take out the other components for healthcheck
         savedRestClientParameters = papParameterGroup.getHealthCheckRestClientParameters();
         papParameterGroup.setHealthCheckRestClientParameters(null);