summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2022-07-01 15:59:33 +0000
committerGerrit Code Review <gerrit@onap.org>2022-07-01 15:59:33 +0000
commitb728fc71a7e87d735f98339807678eb5b7912c92 (patch)
treea4af7e658683dc2011cefb1f15c3814832efdf35
parentd925a54f81d014ef279288469b6e64032c031929 (diff)
parentea7206c10a8f7e3ad56d4e59e13c7b170841ae0d (diff)
Merge "Modify Unit test for module definition"
-rw-r--r--cps-ncmp-rest/src/test/groovy/org/onap/cps/ncmp/rest/controller/NetworkCmProxyControllerSpec.groovy6
1 files changed, 3 insertions, 3 deletions
diff --git a/cps-ncmp-rest/src/test/groovy/org/onap/cps/ncmp/rest/controller/NetworkCmProxyControllerSpec.groovy b/cps-ncmp-rest/src/test/groovy/org/onap/cps/ncmp/rest/controller/NetworkCmProxyControllerSpec.groovy
index 729df9ce4d..2cb397ded5 100644
--- a/cps-ncmp-rest/src/test/groovy/org/onap/cps/ncmp/rest/controller/NetworkCmProxyControllerSpec.groovy
+++ b/cps-ncmp-rest/src/test/groovy/org/onap/cps/ncmp/rest/controller/NetworkCmProxyControllerSpec.groovy
@@ -416,9 +416,9 @@ class NetworkCmProxyControllerSpec extends Specification {
then: 'ncmp service method to get module definitions is called'
mockNetworkCmProxyDataService.getModuleDefinitionsByCmHandleId('some-cmhandle')
>> [new ModuleDefinition('sampleModuleName', '2021-10-03',
- String.format('module sampleModuleName{ %n sample module content %n }'))]
- and: 'response contains an array with the module name, revision and content where content contains \\n for newlines'
- response.getContentAsString() == '[{"moduleName":"sampleModuleName","revision":"2021-10-03","content":"module sampleModuleName{ \\n sample module content \\n }"}]'
+ 'module sampleModuleName{ sample module content }')]
+ and: 'response contains an array with the module name, revision and content'
+ response.getContentAsString() == '[{"moduleName":"sampleModuleName","revision":"2021-10-03","content":"module sampleModuleName{ sample module content }"}]'
and: 'response returns an OK http code'
response.status == HttpStatus.OK.value()
}