Attach a (JSON) data instance for a container with children to a given Anchor
[cps.git] / cps-rest / src / test / groovy / org / onap / cps / rest / exceptions / CpsRestExceptionHandlerSpec.groovy
index edc484b..7dbf6bc 100644 (file)
@@ -22,6 +22,7 @@ package org.onap.cps.rest.exceptions
 import groovy.json.JsonSlurper
 import org.modelmapper.ModelMapper
 import org.onap.cps.api.CpsAdminService
+import org.onap.cps.api.CpsDataService
 import org.onap.cps.api.CpsModuleService
 import org.onap.cps.spi.exceptions.AnchorAlreadyDefinedException
 import org.onap.cps.spi.exceptions.CpsException
@@ -55,6 +56,9 @@ class CpsRestExceptionHandlerSpec extends Specification {
     @SpringBean
     CpsModuleService mockCpsModuleService = Mock()
 
+    @SpringBean
+    CpsDataService mockCpsDataService = Mock()
+
     @SpringBean
     ModelMapper modelMapper = Mock()