/*-
* ============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;
* @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;
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);