aboutsummaryrefslogtreecommitdiffstats
path: root/prh-app-server/src/test
diff options
context:
space:
mode:
authorJoanna Jeremicz <joanna.jeremicz@nokia.com>2022-02-11 13:48:25 +0100
committerJoanna Jeremicz <joanna.jeremicz@nokia.com>2022-02-14 10:31:56 +0100
commit992e070cc195fcc291dbeb3e2f844ddc4b1364cd (patch)
treeebd3b0bec6d5c76e17038e7e898170eb0af0bb93 /prh-app-server/src/test
parent56e7cf48416cf1f5da46723c3a27f350d46fc20b (diff)
Remove vulnerability1.8.0
- Update DCAE SDK version from 1.8.7 to 1.8.8 - Update Spring Boot version from 2.4.8 to 2.5.9 - Update Spring Cloud version from 2020.0.1 to 2020.0.5 Change-Id: I0de15135572521feb399d75cd617f007394c6e4e Issue-ID: DCAEGEN2-3050 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
Diffstat (limited to 'prh-app-server/src/test')
-rw-r--r--prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/configuration/CbsConfigRefreshSchedulerTest.java6
-rw-r--r--prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/tasks/BbsActionsTaskTest.java10
2 files changed, 8 insertions, 8 deletions
diff --git a/prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/configuration/CbsConfigRefreshSchedulerTest.java b/prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/configuration/CbsConfigRefreshSchedulerTest.java
index 7ea08aea..71fc4983 100644
--- a/prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/configuration/CbsConfigRefreshSchedulerTest.java
+++ b/prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/configuration/CbsConfigRefreshSchedulerTest.java
@@ -2,7 +2,7 @@
* ============LICENSE_START=======================================================
* PNF-REGISTRATION-HANDLER
* ================================================================================
- * Copyright (C) 2019 NOKIA Intellectual Property. All rights reserved.
+ * Copyright (C) 2019-2022 NOKIA Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -89,7 +89,7 @@ class CbsConfigRefreshSchedulerTest {
virtualTimeScheduler.advanceTimeBy(Duration.ofHours(10));
- verifyZeroInteractions(contextRefresher);
+ verifyNoInteractions(contextRefresher);
}
@Test
@@ -135,4 +135,4 @@ class CbsConfigRefreshSchedulerTest {
verify(contextRefresher).refresh();
}
-} \ No newline at end of file
+}
diff --git a/prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/tasks/BbsActionsTaskTest.java b/prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/tasks/BbsActionsTaskTest.java
index 801f6c1f..8d115ffc 100644
--- a/prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/tasks/BbsActionsTaskTest.java
+++ b/prh-app-server/src/test/java/org/onap/dcaegen2/services/prh/tasks/BbsActionsTaskTest.java
@@ -2,7 +2,7 @@
* ============LICENSE_START=======================================================
* PNF-REGISTRATION-HANDLER
* ================================================================================
- * Copyright (C) 2019-2021 NOKIA Intellectual Property. All rights reserved.
+ * Copyright (C) 2019-2022 NOKIA Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyZeroInteractions;
+import static org.mockito.Mockito.verifyNoInteractions;
import static org.onap.dcaegen2.services.sdk.rest.services.adapters.http.HttpMethod.DELETE;
import static org.onap.dcaegen2.services.sdk.rest.services.adapters.http.HttpMethod.GET;
import static org.onap.dcaegen2.services.sdk.rest.services.adapters.http.HttpMethod.PUT;
@@ -86,7 +86,7 @@ class BbsActionsTaskTest {
ConsumerDmaapModel result = new BbsActionsTaskImpl(cbsConfiguration, httpClient).execute(consumerDmaapModel).block();
// then
- verifyZeroInteractions(httpClient);
+ verifyNoInteractions(httpClient);
assertThat(result).isEqualTo(consumerDmaapModel);
}
@@ -104,7 +104,7 @@ class BbsActionsTaskTest {
.block();
// then
- verifyZeroInteractions(httpClient);
+ verifyNoInteractions(httpClient);
assertThat(result).isEqualTo(consumerDmaapModel);
}
@@ -246,4 +246,4 @@ class BbsActionsTaskTest {
private String getBodyJson(String filename) {
return new Scanner(loader.getResourceAsStream(filename)).useDelimiter("\\A").next();
}
-} \ No newline at end of file
+}