Refactor buildDataNodes to a separate service 75/139275/23
authorArpit Singh <AS00745003@techmahindra.com>
Thu, 7 Nov 2024 10:03:39 +0000 (15:33 +0530)
committerArpit Singh <AS00745003@techmahindra.com>
Wed, 12 Mar 2025 04:04:37 +0000 (09:34 +0530)
commit646caa6ccba0eda7d9a681761ae03df5d2c45f1d
tree35e488e6860c6629d32c350b37178859cb8eae24
parentab96e052a6725ad0cc5e56ae69461c352c83551f
Refactor buildDataNodes to a separate service

- Moved the code for buildDataNodes from CpsDataServiceImpl.java to a
  separate service named DataNodeBuilderService.java
- Renamed the methods to be clear and in-line with their intended use in
  DataNodeBuilderService class
- Moved ROOT_NODE_XPATH and NO_PARENT_PATH to CpsPathUtils

Issue-ID: CPS-2487
Change-Id: I46cf843ab79b1e2547d968fbd30528270b95cc16
Signed-off-by: Arpit Singh <AS00745003@techmahindra.com>
cps-path-parser/src/main/java/org/onap/cps/cpspath/parser/CpsPathUtil.java
cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/CpsPathUtilSpec.groovy
cps-service/src/main/java/org/onap/cps/api/DataNodeFactory.java [new file with mode: 0644]
cps-service/src/main/java/org/onap/cps/impl/CpsDataServiceImpl.java
cps-service/src/main/java/org/onap/cps/impl/DataNodeFactoryImpl.java [new file with mode: 0644]
cps-service/src/test/groovy/org/onap/cps/impl/CpsDataServiceImplSpec.groovy
cps-service/src/test/groovy/org/onap/cps/impl/DataNodeFactorySpec.groovy [new file with mode: 0644]
cps-service/src/test/groovy/org/onap/cps/impl/E2ENetworkSliceSpec.groovy