Improve code coverage CPS-NCMP-Service 58/142458/2
authorToineSiebelink <toine.siebelink@est.tech>
Tue, 18 Nov 2025 10:05:33 +0000 (10:05 +0000)
committerToineSiebelink <toine.siebelink@est.tech>
Thu, 20 Nov 2025 11:58:37 +0000 (11:58 +0000)
commit07814ac24d7c903bbab745ecabb33f1d4cbd277d
tree8987183960894e894293006d60405cc6158bc297
parent77bdb70a7819f1baacedf10f2829791e29a7bf32
Improve code coverage CPS-NCMP-Service

- Increase coverage threshold cps-ncmp-service to 99%
- Use real configuration classes for DMI Client Integration Test
  (fills big coverage gap in WebClientConfiguration)
- Filled testing gaps in CM AVC Events package
  (partly by removing redundant code!)
- Filled testing gaps in hazelcast cache configs
- Added missing test for Inventory Persistence service

Issue-ID: CPS-475
Change-Id: I0987427c4d50ed48848809d10f3486af6e14312b
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
12 files changed:
cps-ncmp-service/pom.xml
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/datajobs/subscription/cmavc/CmAvcEventConsumer.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/datajobs/subscription/cmavc/CmAvcEventService.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/datajobs/subscription/cmavc/CmAvcOperationEnum.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/utils/events/CloudEventMapper.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/cache/AdminCacheConfigSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/cache/AlternateIdCacheConfigSpec.groovy [new file with mode: 0644]
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/datajobs/subscription/cache/CmSubscriptionConfigSpec.groovy [new file with mode: 0644]
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/datajobs/subscription/cmavc/CmAvcEventConsumerSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/datajobs/subscription/cmavc/CmAvcEventServiceSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/dmi/DmiRestClientIntegrationSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/InventoryPersistenceImplSpec.groovy