diff options
author | PatrikBuhr <patrik.buhr@est.tech> | 2023-01-16 15:27:10 +0100 |
---|---|---|
committer | PatrikBuhr <patrik.buhr@est.tech> | 2023-01-19 09:21:45 +0100 |
commit | aee111025016696c6aa5ffe1f86acdb731a7ff0f (patch) | |
tree | 79abf2c001cbb46b499aab553aa9251f94bc86a9 /a1-policy-management/src/test/java | |
parent | c0218ada67784a7d5c3a488303bcbab2b3dce5b5 (diff) |
Changes needed for springboot version 2.7.7
Change-Id: Ie13ba28d3d9bf62a7851145ab84d3a1509d84261
Issue-ID: CCSDK-3841
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
Diffstat (limited to 'a1-policy-management/src/test/java')
2 files changed, 3 insertions, 4 deletions
diff --git a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java index 1e8278a9..ec65e4c1 100644 --- a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java +++ b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java @@ -31,7 +31,6 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; import java.io.FileOutputStream; -import java.io.IOException; import java.io.PrintStream; import java.lang.invoke.MethodHandles; import java.nio.charset.StandardCharsets; @@ -233,7 +232,7 @@ class ApplicationTest { } @Test - void generateApiDoc() throws IOException { + void generateApiDoc() throws Exception { String url = "https://localhost:" + this.port + "/v3/api-docs"; ResponseEntity<String> resp = restClient("", false).getForEntity(url).block(); assertThat(resp.getStatusCode()).isEqualTo(HttpStatus.OK); diff --git a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RicSynchronizationTaskTest.java b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RicSynchronizationTaskTest.java index ae4e92bc..b17cc98b 100644 --- a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RicSynchronizationTaskTest.java +++ b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RicSynchronizationTaskTest.java @@ -149,8 +149,8 @@ class RicSynchronizationTaskTest { setUpCreationOfA1Client(); simulateRicWithNoPolicyTypes(); policies.put(policy1); - WebClientRequestException exception = - new WebClientRequestException(new ServiceException("x"), null, null, null); + WebClientRequestException exception = new WebClientRequestException(new ServiceException("x"), null, null, + new org.springframework.http.HttpHeaders()); when(a1ClientMock.deleteAllPolicies(anySet())).thenReturn(Flux.error(exception)); ric1.setState(RicState.AVAILABLE); runSynch(ric1); |