diff options
author | 2025-03-20 00:07:40 +0000 | |
---|---|---|
committer | 2025-03-20 11:37:26 +0000 | |
commit | 82679cd4a60fe990595a94669642d1ba0f37e2ff (patch) | |
tree | 9314c4ed710b290a900291f0d290650b2e9b73a9 /cps-service/src | |
parent | 7a67aa410fbdaaed0cf5b5110512c442bfb400ff (diff) |
Use attribute-axis in NCMP [#3]
- uses queryleaf API on the methods 'getCmHandleReferences'
Issue-ID: CPS-2664
Change-Id: I7552b4cdfcfa5eb285b94c1dcebfa5ba8327508c
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Diffstat (limited to 'cps-service/src')
-rw-r--r-- | cps-service/src/main/java/org/onap/cps/impl/CpsQueryServiceImpl.java | 4 | ||||
-rw-r--r-- | cps-service/src/test/groovy/org/onap/cps/impl/CpsFacadeImplSpec.groovy | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/cps-service/src/main/java/org/onap/cps/impl/CpsQueryServiceImpl.java b/cps-service/src/main/java/org/onap/cps/impl/CpsQueryServiceImpl.java index 5abdd0fe2b..d61caf2d27 100644 --- a/cps-service/src/main/java/org/onap/cps/impl/CpsQueryServiceImpl.java +++ b/cps-service/src/main/java/org/onap/cps/impl/CpsQueryServiceImpl.java @@ -74,8 +74,8 @@ public class CpsQueryServiceImpl implements CpsQueryService { public <T> Set<T> queryDataLeaf(final String dataspaceName, final String anchorName, final String cpsPath, final int queryResultLimit, final Class<T> targetClass) { cpsValidator.validateNameCharacters(dataspaceName, anchorName); - return cpsDataPersistenceService.queryDataLeaf(dataspaceName, anchorName, cpsPath, queryResultLimit, - targetClass); + return cpsDataPersistenceService.queryDataLeaf(dataspaceName, anchorName, cpsPath, + queryResultLimit, targetClass); } @Override diff --git a/cps-service/src/test/groovy/org/onap/cps/impl/CpsFacadeImplSpec.groovy b/cps-service/src/test/groovy/org/onap/cps/impl/CpsFacadeImplSpec.groovy index 4351631ee1..36cee6d627 100644 --- a/cps-service/src/test/groovy/org/onap/cps/impl/CpsFacadeImplSpec.groovy +++ b/cps-service/src/test/groovy/org/onap/cps/impl/CpsFacadeImplSpec.groovy @@ -20,6 +20,9 @@ package org.onap.cps.impl +import static org.onap.cps.api.parameters.FetchDescendantsOption.OMIT_DESCENDANTS +import static org.onap.cps.api.parameters.PaginationOption.NO_PAGINATION + import org.onap.cps.api.CpsAnchorService import org.onap.cps.api.CpsDataService import org.onap.cps.api.CpsQueryService @@ -29,9 +32,6 @@ import org.onap.cps.utils.DataMapper import org.onap.cps.utils.PrefixResolver import spock.lang.Specification -import static org.onap.cps.api.parameters.FetchDescendantsOption.OMIT_DESCENDANTS -import static org.onap.cps.api.parameters.PaginationOption.NO_PAGINATION - class CpsFacadeImplSpec extends Specification { def mockCpsDataService = Mock(CpsDataService) |