diff options
author | 2021-02-01 15:36:38 +0000 | |
---|---|---|
committer | 2021-02-01 15:36:38 +0000 | |
commit | 30da8a9ea8f8f77ab5976097749caffbd16c4a93 (patch) | |
tree | ef77789b0409c2d0b6e6aa3af74e7353f4de9579 /cps-service/src/test/groovy/org/onap | |
parent | 850e3ecdecbedd30e65ae7cbaa81fc5301766f45 (diff) | |
parent | 74753d923b77d87b17e8221ecc86a084446648b7 (diff) |
Merge "Attach a (JSON) data instance for a container with children to a given Anchor"
Diffstat (limited to 'cps-service/src/test/groovy/org/onap')
-rw-r--r-- | cps-service/src/test/groovy/org/onap/cps/api/impl/CpsModuleServiceImplSpec.groovy | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/cps-service/src/test/groovy/org/onap/cps/api/impl/CpsModuleServiceImplSpec.groovy b/cps-service/src/test/groovy/org/onap/cps/api/impl/CpsModuleServiceImplSpec.groovy index 5f2168aeb..261d17493 100644 --- a/cps-service/src/test/groovy/org/onap/cps/api/impl/CpsModuleServiceImplSpec.groovy +++ b/cps-service/src/test/groovy/org/onap/cps/api/impl/CpsModuleServiceImplSpec.groovy @@ -22,6 +22,7 @@ package org.onap.cps.api.impl import org.onap.cps.TestUtils import org.onap.cps.api.CpsAdminService +import org.onap.cps.spi.CpsDataPersistenceService import org.onap.cps.spi.CpsModulePersistenceService import org.onap.cps.spi.exceptions.ModelValidationException import org.onap.cps.spi.model.ModuleReference @@ -46,6 +47,8 @@ class CpsModuleServiceImplSpec extends Specification { CpsModulePersistenceService mockModuleStoreService = Mock() @SpringBean CpsAdminService mockCpsAdminService = Mock() + @SpringBean + CpsDataPersistenceService mockDataPersistenceService = Mock() @Autowired CpsModuleServiceImpl objectUnderTest = new CpsModuleServiceImpl() @SpringBean @@ -93,14 +96,14 @@ class CpsModuleServiceImplSpec extends Specification { } @Unroll - def 'Delete set by name and dataspace with #cascadeDeleteOption.'(){ + def 'Delete set by name and dataspace with #cascadeDeleteOption.'() { when: 'schema set deletion is requested' objectUnderTest.deleteSchemaSet(dataspaceName, schemaSetname, cascadeDeleteOption) then: 'persistence service method is invoked with same parameters' mockModuleStoreService.deleteSchemaSet(dataspaceName, schemaSetname, cascadeDeleteOption) where: 'following parameters are used' - dataspaceName | schemaSetname | cascadeDeleteOption - 'dataspace-1' | 'schemas-set-1' | CASCADE_DELETE_ALLOWED - 'dataspace-2' | 'schemas-set-2' | CASCADE_DELETE_PROHIBITED + dataspaceName | schemaSetname | cascadeDeleteOption + 'dataspace-1' | 'schemas-set-1' | CASCADE_DELETE_ALLOWED + 'dataspace-2' | 'schemas-set-2' | CASCADE_DELETE_PROHIBITED } } |