Groovy clean tests clean-up 54/129954/10
authoremaclee <lee.anjella.macabuhay@est.tech>
Fri, 15 Jul 2022 11:31:46 +0000 (12:31 +0100)
committeremaclee <lee.anjella.macabuhay@est.tech>
Tue, 26 Jul 2022 09:18:46 +0000 (10:18 +0100)
commitf5f5e6be4e7d222a7530b96d2d77ed611934822f
treee329f206b51163aa70d853bed82010bc820f77bf
parentaf8d434068e6f0d2b88c152b069afdcaf162f6c2
Groovy clean tests clean-up

- test labels are modified to set standards for writing tests
   - labels are not expected to be technical
   - labels need to be in simple language that ANYONE can understand
   - labels should not have exact method names except for some mocking
- variables are modified to give highlight to ONLY important parameter of test
   - wild cards are preferred when possible i.e. for exception cases

Issue-ID: CPS-588
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: I3d42471e7aa4bc61f962ad19cc1f237f6985a9a2
src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/ControllerSecuritySpec.groovy
src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/DmiRestControllerSpec.groovy
src/test/groovy/org/onap/cps/ncmp/dmi/service/DmiServiceImplSpec.groovy
src/test/groovy/org/onap/cps/ncmp/dmi/service/client/NcmpRestClientSpec.groovy
src/test/groovy/org/onap/cps/ncmp/dmi/service/client/SdncRestconfClientSpec.groovy
src/test/groovy/org/onap/cps/ncmp/dmi/service/operation/SdncOperationsSpec.groovy
src/test/resources/moduleResources.json [moved from src/test/resources/GetModules.json with 100% similarity]