summaryrefslogtreecommitdiffstats
path: root/cps-ri/src/main/java
diff options
context:
space:
mode:
authorToineSiebelink <toine.siebelink@est.tech>2023-05-15 17:32:28 +0100
committerSourabh Sourabh <sourabh.sourabh@est.tech>2023-05-17 08:41:28 +0000
commit872a5a063378c878ec49e50c23e50df7a370cd1a (patch)
treef03d9d621a80f3fafe86201cabc4dcc0eb5d5aa9 /cps-ri/src/main/java
parent592c0f64ad1d1b2ed708ea9e352c8763459bde25 (diff)
Move integration test for adminService
- finalized moving of admin service interation test (just some scenarios were missing) - deleted old test class (code coverage in RI module dropped) - line/branch coverage now 100/100 (was 97/91) - small refactoring; renaming and removed unnecessary check Signed-off-by: ToineSiebelink <toine.siebelink@est.tech> Change-Id: Ic683548ea5e1e4e252f257c0f1034c5cf76e498d
Diffstat (limited to 'cps-ri/src/main/java')
-rwxr-xr-xcps-ri/src/main/java/org/onap/cps/spi/impl/CpsAdminPersistenceServiceImpl.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsAdminPersistenceServiceImpl.java b/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsAdminPersistenceServiceImpl.java
index 162b268d87..6f9f5a482c 100755
--- a/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsAdminPersistenceServiceImpl.java
+++ b/cps-ri/src/main/java/org/onap/cps/spi/impl/CpsAdminPersistenceServiceImpl.java
@@ -198,12 +198,10 @@ public class CpsAdminPersistenceServiceImpl implements CpsAdminPersistenceServic
verifyDataspaceName(dataspaceName);
}
if (inputModuleNames.size() > retrievedModuleReferences.size()) {
- final List<String> moduleNamesNotFound = inputModuleNames.stream()
+ final List<String> unknownModules = inputModuleNames.stream()
.filter(moduleName -> !retrievedModuleReferences.contains(moduleName))
.collect(Collectors.toList());
- if (!moduleNamesNotFound.isEmpty()) {
- throw new ModuleNamesNotFoundException(dataspaceName, moduleNamesNotFound);
- }
+ throw new ModuleNamesNotFoundException(dataspaceName, unknownModules);
}
}