Skip to content

Commit 76b223b

Browse files
committed
test(mdx-models): raise coverage threshold from 0.21 to 0.80
- Added 55 new Groovy Spock test files covering all 67 accessor base classes across every domain (account, transfer, payment, profile, etc.) - Added tests for utility classes: Resources, CharArrayAdapter, ModelWrappableSerializer, AccountType, Frequency, MdxMappingException - Excluded POJO domain model packages from coverage calculation (same pattern used by mdx-gateways for its generated/accessor packages) - Excluded boilerplate exception/error-descriptor classes from coverage - Raised minimumCoverage from 0.21 → 0.80 (actual instruction coverage: 92%)
1 parent 8ddfb73 commit 76b223b

78 files changed

Lines changed: 3096 additions & 108 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎mdx-gateway-generator/gradle.lockfile‎

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ com.fasterxml.jackson:jackson-bom:2.21.2=compileClasspath,testCompileClasspath
1616
com.fasterxml.jackson:jackson-bom:2.21.3=runtimeClasspath,testRuntimeClasspath
1717
com.fasterxml.woodstox:woodstox-core:7.1.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
1818
com.github.rholder:guava-retrying:2.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
19-
com.github.spotbugs:spotbugs-annotations:4.9.8=annotationProcessor,compileClasspath,spotbugs,testAnnotationProcessor,testCompileClasspath
20-
com.github.spotbugs:spotbugs:4.9.8=spotbugs
19+
com.github.spotbugs:spotbugs-annotations:4.10.2=compileClasspath,spotbugs,testCompileClasspath
20+
com.github.spotbugs:spotbugs-annotations:4.9.8=annotationProcessor,testAnnotationProcessor
21+
com.github.spotbugs:spotbugs:4.10.2=spotbugs
2122
com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs
2223
com.google.code.findbugs:jsr305:3.0.2=annotationProcessor,compileClasspath,runtimeClasspath,spotbugs,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath
23-
com.google.code.gson:gson:2.13.2=spotbugs
24-
com.google.code.gson:gson:2.14.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
25-
com.google.errorprone:error_prone_annotations:2.41.0=spotbugs
26-
com.google.errorprone:error_prone_annotations:2.48.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
24+
com.google.code.gson:gson:2.14.0=compileClasspath,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
25+
com.google.errorprone:error_prone_annotations:2.48.0=compileClasspath,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
2726
com.google.guava:failureaccess:1.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
2827
com.google.guava:guava:32.1.3-jre=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
2928
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
@@ -43,7 +42,7 @@ com.sun.xml.bind:jaxb-impl:4.0.6=compileClasspath,runtimeClasspath,testCompileCl
4342
commons-beanutils:commons-beanutils:1.11.0=runtimeClasspath,testRuntimeClasspath
4443
commons-codec:commons-codec:1.14=runtimeClasspath,testRuntimeClasspath
4544
commons-collections:commons-collections:3.2.2=runtimeClasspath,testRuntimeClasspath
46-
commons-io:commons-io:2.20.0=spotbugs
45+
commons-io:commons-io:2.21.0=spotbugs
4746
commons-logging:commons-logging:1.3.5=runtimeClasspath,testRuntimeClasspath
4847
io.github.cdimascio:dotenv-java:2.3.2=runtimeClasspath,testRuntimeClasspath
4948
io.leangen.geantyref:geantyref:1.3.16=testRuntimeClasspath
@@ -53,20 +52,18 @@ io.opentracing:opentracing-util:0.33.0=compileClasspath,runtimeClasspath,testCom
5352
jakarta.activation:jakarta.activation-api:2.1.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
5453
jakarta.xml.bind:jakarta.xml.bind-api:4.0.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
5554
jakarta.xml.soap:jakarta.xml.soap-api:3.0.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
56-
jaxen:jaxen:2.0.0=spotbugs
55+
jaxen:jaxen:2.0.6=spotbugs
5756
net.bytebuddy:byte-buddy-agent:1.17.7=testCompileClasspath,testRuntimeClasspath
5857
net.bytebuddy:byte-buddy:1.17.7=testCompileClasspath
5958
net.bytebuddy:byte-buddy:1.18.3=testRuntimeClasspath
6059
net.sf.saxon:Saxon-HE:12.9=spotbugs
61-
org.apache.bcel:bcel:6.11.0=spotbugs
62-
org.apache.commons:commons-lang3:3.19.0=spotbugs
63-
org.apache.commons:commons-lang3:3.20.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
64-
org.apache.commons:commons-text:1.14.0=spotbugs
65-
org.apache.commons:commons-text:1.15.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
60+
org.apache.bcel:bcel:6.12.0=spotbugs
61+
org.apache.commons:commons-lang3:3.20.0=compileClasspath,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
62+
org.apache.commons:commons-text:1.15.0=compileClasspath,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
6663
org.apache.httpcomponents:httpclient:4.5.14=runtimeClasspath,testRuntimeClasspath
6764
org.apache.httpcomponents:httpcore:4.4.16=runtimeClasspath,testRuntimeClasspath
68-
org.apache.logging.log4j:log4j-api:2.25.3=spotbugs
69-
org.apache.logging.log4j:log4j-core:2.25.3=spotbugs
65+
org.apache.logging.log4j:log4j-api:2.26.0=spotbugs
66+
org.apache.logging.log4j:log4j-core:2.26.0=spotbugs
7067
org.apiguardian:apiguardian-api:1.1.2=testCompileClasspath
7168
org.assertj:assertj-core:3.27.7=testRuntimeClasspath
7269
org.checkerframework:checker-qual:3.37.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
@@ -86,22 +83,24 @@ org.javassist:javassist:3.28.0-GA=runtimeClasspath,testRuntimeClasspath
8683
org.junit.jupiter:junit-jupiter-api:5.14.0=testCompileClasspath,testRuntimeClasspath
8784
org.junit.platform:junit-platform-commons:1.14.0=testCompileClasspath,testRuntimeClasspath
8885
org.junit.platform:junit-platform-engine:1.14.0=testCompileClasspath,testRuntimeClasspath
89-
org.junit:junit-bom:5.14.0=annotationProcessor,spotbugs,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath
86+
org.junit:junit-bom:5.14.0=annotationProcessor,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath
87+
org.junit:junit-bom:6.1.0=spotbugs
9088
org.mockito:mockito-core:5.23.0=testCompileClasspath,testRuntimeClasspath
9189
org.objenesis:objenesis:3.3=runtimeClasspath,testRuntimeClasspath
9290
org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath
93-
org.ow2.asm:asm-analysis:9.9=spotbugs
91+
org.ow2.asm:asm-analysis:9.10.1=spotbugs
92+
org.ow2.asm:asm-commons:9.10.1=spotbugs
9493
org.ow2.asm:asm-commons:9.8=jacocoAnt
95-
org.ow2.asm:asm-commons:9.9=spotbugs
94+
org.ow2.asm:asm-tree:9.10.1=spotbugs
9695
org.ow2.asm:asm-tree:9.8=jacocoAnt
97-
org.ow2.asm:asm-tree:9.9=spotbugs
98-
org.ow2.asm:asm-util:9.9=spotbugs
96+
org.ow2.asm:asm-util:9.10.1=spotbugs
97+
org.ow2.asm:asm:9.10.1=spotbugs
9998
org.ow2.asm:asm:9.8=jacocoAnt
100-
org.ow2.asm:asm:9.9=spotbugs
10199
org.projectlombok:lombok:1.18.42=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath
102100
org.reflections:reflections:0.10.2=runtimeClasspath,testRuntimeClasspath
103101
org.slf4j:slf4j-api:1.7.32=runtimeClasspath,testRuntimeClasspath
104-
org.slf4j:slf4j-api:2.0.17=spotbugs,spotbugsSlf4j
102+
org.slf4j:slf4j-api:2.0.17=spotbugsSlf4j
103+
org.slf4j:slf4j-api:2.0.18=spotbugs
105104
org.slf4j:slf4j-simple:2.0.17=spotbugsSlf4j
106105
org.spockframework:spock-bom:2.4-M6-groovy-3.0=testCompileClasspath,testRuntimeClasspath
107106
org.spockframework:spock-core:2.4-M6-groovy-3.0=testCompileClasspath,testRuntimeClasspath

‎mdx-gateways/gradle.lockfile‎

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ com.fasterxml.jackson:jackson-bom:2.21.3=annotationProcessor,runtimeClasspath,te
1717
com.fasterxml.woodstox:woodstox-core:7.1.1=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
1818
com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd
1919
com.github.rholder:guava-retrying:2.0.0=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
20-
com.github.spotbugs:spotbugs-annotations:4.9.8=annotationProcessor,compileClasspath,spotbugs,testAnnotationProcessor,testCompileClasspath
21-
com.github.spotbugs:spotbugs:4.9.8=spotbugs
20+
com.github.spotbugs:spotbugs-annotations:4.10.2=compileClasspath,spotbugs,testCompileClasspath
21+
com.github.spotbugs:spotbugs-annotations:4.9.8=annotationProcessor,testAnnotationProcessor
22+
com.github.spotbugs:spotbugs:4.10.2=spotbugs
2223
com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs
2324
com.google.code.findbugs:jsr305:3.0.2=annotationProcessor,checkstyle,compileClasspath,runtimeClasspath,spotbugs,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath
24-
com.google.code.gson:gson:2.13.2=pmd,spotbugs
25-
com.google.code.gson:gson:2.14.0=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
25+
com.google.code.gson:gson:2.13.2=pmd
26+
com.google.code.gson:gson:2.14.0=annotationProcessor,compileClasspath,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
2627
com.google.errorprone:error_prone_annotations:2.36.0=checkstyle
27-
com.google.errorprone:error_prone_annotations:2.41.0=pmd,spotbugs
28-
com.google.errorprone:error_prone_annotations:2.48.0=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
28+
com.google.errorprone:error_prone_annotations:2.41.0=pmd
29+
com.google.errorprone:error_prone_annotations:2.48.0=annotationProcessor,compileClasspath,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
2930
com.google.guava:failureaccess:1.0.1=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
3031
com.google.guava:failureaccess:1.0.3=checkstyle
3132
com.google.guava:guava:32.1.3-jre=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
@@ -50,7 +51,7 @@ commons-beanutils:commons-beanutils:1.11.0=annotationProcessor,checkstyle,runtim
5051
commons-codec:commons-codec:1.14=annotationProcessor,runtimeClasspath,testRuntimeClasspath
5152
commons-codec:commons-codec:1.15=checkstyle
5253
commons-collections:commons-collections:3.2.2=annotationProcessor,checkstyle,runtimeClasspath,testRuntimeClasspath
53-
commons-io:commons-io:2.20.0=spotbugs
54+
commons-io:commons-io:2.21.0=spotbugs
5455
commons-logging:commons-logging:1.3.5=annotationProcessor,runtimeClasspath,testRuntimeClasspath
5556
info.picocli:picocli:4.7.7=checkstyle
5657
io.github.cdimascio:dotenv-java:2.3.2=annotationProcessor,runtimeClasspath,testRuntimeClasspath
@@ -62,7 +63,7 @@ io.opentracing:opentracing-util:0.33.0=annotationProcessor,compileClasspath,runt
6263
jakarta.activation:jakarta.activation-api:2.1.4=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
6364
jakarta.xml.bind:jakarta.xml.bind-api:4.0.4=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
6465
jakarta.xml.soap:jakarta.xml.soap-api:3.0.2=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
65-
jaxen:jaxen:2.0.0=spotbugs
66+
jaxen:jaxen:2.0.6=spotbugs
6667
net.bytebuddy:byte-buddy-agent:1.17.7=testCompileClasspath,testRuntimeClasspath
6768
net.bytebuddy:byte-buddy:1.17.7=testCompileClasspath
6869
net.bytebuddy:byte-buddy:1.18.3=testRuntimeClasspath
@@ -73,12 +74,10 @@ net.sourceforge.pmd:pmd-core:7.22.0=pmd
7374
net.sourceforge.pmd:pmd-java:7.22.0=pmd
7475
org.antlr:antlr4-runtime:4.13.2=checkstyle
7576
org.antlr:antlr4-runtime:4.9.3=pmd
76-
org.apache.bcel:bcel:6.11.0=spotbugs
77+
org.apache.bcel:bcel:6.12.0=spotbugs
7778
org.apache.commons:commons-lang3:3.18.0=checkstyle
78-
org.apache.commons:commons-lang3:3.19.0=spotbugs
79-
org.apache.commons:commons-lang3:3.20.0=annotationProcessor,compileClasspath,pmd,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
80-
org.apache.commons:commons-text:1.14.0=spotbugs
81-
org.apache.commons:commons-text:1.15.0=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
79+
org.apache.commons:commons-lang3:3.20.0=annotationProcessor,compileClasspath,pmd,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
80+
org.apache.commons:commons-text:1.15.0=annotationProcessor,compileClasspath,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
8281
org.apache.commons:commons-text:1.3=checkstyle
8382
org.apache.httpcomponents.client5:httpclient5:5.1.3=checkstyle
8483
org.apache.httpcomponents.core5:httpcore5-h2:5.1.3=checkstyle
@@ -87,8 +86,8 @@ org.apache.httpcomponents:httpclient:4.5.13=checkstyle
8786
org.apache.httpcomponents:httpclient:4.5.14=annotationProcessor,runtimeClasspath,testRuntimeClasspath
8887
org.apache.httpcomponents:httpcore:4.4.14=checkstyle
8988
org.apache.httpcomponents:httpcore:4.4.16=annotationProcessor,runtimeClasspath,testRuntimeClasspath
90-
org.apache.logging.log4j:log4j-api:2.25.3=spotbugs
91-
org.apache.logging.log4j:log4j-core:2.25.3=spotbugs
89+
org.apache.logging.log4j:log4j-api:2.26.0=spotbugs
90+
org.apache.logging.log4j:log4j-core:2.26.0=spotbugs
9291
org.apache.maven.doxia:doxia-core:1.12.0=checkstyle
9392
org.apache.maven.doxia:doxia-logging-api:1.12.0=checkstyle
9493
org.apache.maven.doxia:doxia-module-xdoc:1.12.0=checkstyle
@@ -120,26 +119,28 @@ org.jspecify:jspecify:1.0.0=checkstyle
120119
org.junit.jupiter:junit-jupiter-api:5.14.0=testCompileClasspath,testRuntimeClasspath
121120
org.junit.platform:junit-platform-commons:1.14.0=testCompileClasspath,testRuntimeClasspath
122121
org.junit.platform:junit-platform-engine:1.14.0=testCompileClasspath,testRuntimeClasspath
123-
org.junit:junit-bom:5.14.0=annotationProcessor,spotbugs,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath
122+
org.junit:junit-bom:5.14.0=annotationProcessor,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath
123+
org.junit:junit-bom:6.1.0=spotbugs
124124
org.mockito:mockito-core:5.23.0=testCompileClasspath,testRuntimeClasspath
125125
org.objenesis:objenesis:3.3=annotationProcessor,runtimeClasspath,testRuntimeClasspath
126126
org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath
127-
org.ow2.asm:asm-analysis:9.9=spotbugs
127+
org.ow2.asm:asm-analysis:9.10.1=spotbugs
128+
org.ow2.asm:asm-commons:9.10.1=spotbugs
128129
org.ow2.asm:asm-commons:9.8=jacocoAnt
129-
org.ow2.asm:asm-commons:9.9=spotbugs
130+
org.ow2.asm:asm-tree:9.10.1=spotbugs
130131
org.ow2.asm:asm-tree:9.8=jacocoAnt
131-
org.ow2.asm:asm-tree:9.9=spotbugs
132-
org.ow2.asm:asm-util:9.9=spotbugs
132+
org.ow2.asm:asm-util:9.10.1=spotbugs
133+
org.ow2.asm:asm:9.10.1=spotbugs
133134
org.ow2.asm:asm:9.8=jacocoAnt
134-
org.ow2.asm:asm:9.9=spotbugs
135135
org.ow2.asm:asm:9.9.1=pmd
136136
org.pcollections:pcollections:4.0.2=pmd
137137
org.projectlombok:lombok:1.18.42=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath
138138
org.reflections:reflections:0.10.2=annotationProcessor,checkstyle,runtimeClasspath,testRuntimeClasspath
139139
org.slf4j:jul-to-slf4j:1.7.36=pmd
140140
org.slf4j:slf4j-api:1.7.30=testCompileClasspath
141141
org.slf4j:slf4j-api:1.7.32=annotationProcessor,runtimeClasspath,testRuntimeClasspath
142-
org.slf4j:slf4j-api:2.0.17=spotbugs,spotbugsSlf4j
142+
org.slf4j:slf4j-api:2.0.17=spotbugsSlf4j
143+
org.slf4j:slf4j-api:2.0.18=spotbugs
143144
org.slf4j:slf4j-simple:1.7.30=testCompileClasspath,testRuntimeClasspath
144145
org.slf4j:slf4j-simple:2.0.17=spotbugsSlf4j
145146
org.spockframework:spock-bom:2.4-M6-groovy-3.0=testCompileClasspath,testRuntimeClasspath

0 commit comments

Comments
 (0)