From 26a51754dd8aa9b467bcb442e6042f22af2ba001 Mon Sep 17 00:00:00 2001 From: ToineSiebelink Date: Mon, 8 May 2023 17:54:46 +0100 Subject: Move integration test for moduleService - all modules service interation test moved - added some aditional scenarios to increase coverage - removed unused method(s) - remove javdoc on private methods - some minor refactoring like replace 'var' with correct type Issue-ID: CPS-1687 Signed-off-by: ToineSiebelink Change-Id: I03ff1f3562cfe38318e8b9af81be47a1fe667da2 --- .../main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java | 2 +- .../main/java/org/onap/cps/spi/CpsModulePersistenceService.java | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'cps-service') diff --git a/cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java b/cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java index d6c01f7a9b..7d9c472e69 100644 --- a/cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java +++ b/cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java @@ -59,9 +59,9 @@ public class CpsModuleServiceImpl implements CpsModuleService { public void createSchemaSet(final String dataspaceName, final String schemaSetName, final Map yangResourcesNameToContentMap) { cpsValidator.validateNameCharacters(dataspaceName, schemaSetName); + cpsModulePersistenceService.storeSchemaSet(dataspaceName, schemaSetName, yangResourcesNameToContentMap); final YangTextSchemaSourceSet yangTextSchemaSourceSet = timedYangTextSchemaSourceSetBuilder.getYangTextSchemaSourceSet(yangResourcesNameToContentMap); - cpsModulePersistenceService.storeSchemaSet(dataspaceName, schemaSetName, yangResourcesNameToContentMap); yangTextSchemaSourceSetCache.updateCache(dataspaceName, schemaSetName, yangTextSchemaSourceSet); } diff --git a/cps-service/src/main/java/org/onap/cps/spi/CpsModulePersistenceService.java b/cps-service/src/main/java/org/onap/cps/spi/CpsModulePersistenceService.java index 40d4002b97..beb3d4fa8c 100755 --- a/cps-service/src/main/java/org/onap/cps/spi/CpsModulePersistenceService.java +++ b/cps-service/src/main/java/org/onap/cps/spi/CpsModulePersistenceService.java @@ -86,15 +86,6 @@ public interface CpsModulePersistenceService { */ Map getYangSchemaResources(String dataspaceName, String schemaSetName); - /** - * Returns YANG resources per specific dataspace / anchorName. - * - * @param dataspaceName dataspace name - * @param anchorName anchor name - * @return YANG resources (files) map where key is a name and value is content - */ - Map getYangSchemaSetResources(String dataspaceName, String anchorName); - /** * Returns YANG resources module references for the given dataspace name. * -- cgit 1.2.3-korg