From 5a8718b84dbd3c6fa78aa644a4695274a0a1ab5d Mon Sep 17 00:00:00 2001 From: Ruslan Kashapov Date: Thu, 10 Dec 2020 10:49:59 +0200 Subject: Create dataspace Issue-ID: CPS-134 Change-Id: Ie7f00f9c322a12a6c2a71c1407f6970a7dd24d2d Signed-off-by: Ruslan Kashapov --- .../groovy/org/onap/cps/api/impl/CpsAdminServiceImplSpec.groovy | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cps-service/src/test') diff --git a/cps-service/src/test/groovy/org/onap/cps/api/impl/CpsAdminServiceImplSpec.groovy b/cps-service/src/test/groovy/org/onap/cps/api/impl/CpsAdminServiceImplSpec.groovy index 9e13c771d3..022282493b 100644 --- a/cps-service/src/test/groovy/org/onap/cps/api/impl/CpsAdminServiceImplSpec.groovy +++ b/cps-service/src/test/groovy/org/onap/cps/api/impl/CpsAdminServiceImplSpec.groovy @@ -32,6 +32,13 @@ class CpsAdminServiceImplSpec extends Specification { objectUnderTest.cpsAdminPersistenceService = mockCpsAdminPersistenceService } + def 'Create dataspace method invokes persistence service'() { + when: 'Create dataspace method is invoked' + objectUnderTest.createDataspace('someDataspace') + then: 'The persistence service method is invoked with same parameters' + 1 * mockCpsAdminPersistenceService.createDataspace('someDataspace') + } + def 'Create anchor method invokes persistence service'() { when: 'Create anchor method is invoked' objectUnderTest.createAnchor('dummyDataspace', 'dummySchemaSet', 'dummyAnchorName') -- cgit 1.2.3-korg