aboutsummaryrefslogtreecommitdiffstats
path: root/cps-service/src
diff options
context:
space:
mode:
authoremaclee <lee.anjella.macabuhay@est.tech>2025-03-20 00:07:40 +0000
committeremaclee <lee.anjella.macabuhay@est.tech>2025-03-20 11:37:26 +0000
commit82679cd4a60fe990595a94669642d1ba0f37e2ff (patch)
tree9314c4ed710b290a900291f0d290650b2e9b73a9 /cps-service/src
parent7a67aa410fbdaaed0cf5b5110512c442bfb400ff (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.java4
-rw-r--r--cps-service/src/test/groovy/org/onap/cps/impl/CpsFacadeImplSpec.groovy6
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)