X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=cps-ncmp-service%2Fsrc%2Ftest%2Fgroovy%2Forg%2Fonap%2Fcps%2Fapi%2Fimpl%2FNetworkCmProxyDataServiceImplSpec.groovy;h=e67d4ad85df932a92a814cbe47ac99965881caac;hb=1baf48d05be1cd32e22c065ebfec218da100d1f2;hp=0a00e34f7b7bbe4557bf3554fdb21f9e3acd2087;hpb=0905ac124ea1d8ab5067b4b00ece0469961cfa36;p=cps.git diff --git a/cps-ncmp-service/src/test/groovy/org/onap/cps/api/impl/NetworkCmProxyDataServiceImplSpec.groovy b/cps-ncmp-service/src/test/groovy/org/onap/cps/api/impl/NetworkCmProxyDataServiceImplSpec.groovy index 0a00e34f7..e67d4ad85 100644 --- a/cps-ncmp-service/src/test/groovy/org/onap/cps/api/impl/NetworkCmProxyDataServiceImplSpec.groovy +++ b/cps-ncmp-service/src/test/groovy/org/onap/cps/api/impl/NetworkCmProxyDataServiceImplSpec.groovy @@ -73,6 +73,16 @@ class NetworkCmProxyDataServiceImplSpec extends Specification { 1 * mockcpsDataService.saveData(expectedDataspaceName, cmHandle, xpath, jsonData) } + def 'Add list-node elements.'() { + given: 'a cm handle and parent node xpath' + def jsonData = 'some json' + def xpath = '/test-node' + when: 'addListNodeElements is invoked' + objectUnderTest.addListNodeElements(cmHandle, xpath, jsonData) + then: 'the CPS service method is invoked once with the expected parameters' + 1 * mockcpsDataService.saveListNodeData(expectedDataspaceName, cmHandle, xpath, jsonData) + } + def 'Update data node leaves.'() { given: 'a cm Handle and a cps path' def xpath = '/xpath'