From 9270546119b5f63ded27fb847f0f0700df4dddd4 Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Thu, 18 May 2023 10:18:10 +0100 Subject: Allow getDataNodes to read whole lists(ep 1) - getDataNodes can now retrieve list data nodes. Issue-ID: CPS-1696 Signed-off-by: arpitsingh Change-Id: I320a368d6cb73599d3f7c13fe9b8ab7d0cc69470 --- .../groovy/org/onap/cps/spi/impl/CpsDataPersistenceServiceSpec.groovy | 1 + 1 file changed, 1 insertion(+) (limited to 'cps-ri/src/test') diff --git a/cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsDataPersistenceServiceSpec.groovy b/cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsDataPersistenceServiceSpec.groovy index cb554faee8..c72c3046e8 100644 --- a/cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsDataPersistenceServiceSpec.groovy +++ b/cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsDataPersistenceServiceSpec.groovy @@ -56,6 +56,7 @@ class CpsDataPersistenceServiceSpec extends Specification { def setup() { mockAnchorRepository.getByDataspaceAndName(_, _) >> anchorEntity mockFragmentRepository.prefetchDescendantsOfFragmentEntities(_, _) >> { fetchDescendantsOption, fragmentEntities -> fragmentEntities } + mockFragmentRepository.findListByAnchorAndXpath(_, [] as Set) >> [] } def 'Storing data nodes individually when batch operation fails'(){ -- cgit 1.2.3-korg