Page History
...
Instructions | Branches | Complexity | Lines | Methods | Classes | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Element | Missed | Tested | Coverage | Missed | Tested | Coverage | Missed | Total | Missed | Total | Missed | Total | Missed | Total | |||||||||||||||
dk.sds.nsp.sor.sorus.service.external | 453 | 0 | 0% | 14 | 0 | 0% | 32 | 32 | 91 | 91 | 25 | 25 | 3 | 3 | |||||||||||||||
dk.sds.nsp.sor.sorus.helper | 143 | 699 | 83% | 25 | 23 | 47% | 24 | 55 | 43 | 171 | 4 | 28 | 1 | 7 | |||||||||||||||
dk.sds.nsp.sor.sorus.model | 78 | 378 | 82% | 0 | 0 | N/A | 17 | 88 | 18 | 126 | 17 | 88 | 0 | 6 | |||||||||||||||
dk.sds.nsp.sor.sorus.servlet | 34 | 16671536 | 98%97% | 8 | 99 | 92% | 9 | 178139 | 11 | 448406 | 1 | 10869 | 0 | 65 | |||||||||||||||
dk.sds.nsp.sor.sorus.service | 26 | 679678 | 96% | 3 | 28 | 90% | 5 | 60 | 8 | 188 | 2 | 39 | 0 | 3 | |||||||||||||||
dk.sds.nsp.sor.sorus | 24 | 0 | 0% | 0 | 0 | N/A | 2 | 2 | 3 | 3 | 2 | 2 | 1 | 1 | |||||||||||||||
dk.sds.nsp.sor.sorus.helper.proxy | 18 | 37 | 67% | 1 | 1 | 50% | 3 | 6 | 3 | 11 | 2 | 5 | 0 | 1 | |||||||||||||||
dk.sds.nsp.sor.sorus.util.mapping.backend | 6 | 1589 | 99% | 7 | 152 | 95% | 9 | 153 | 2 | 489 | 2 | 66 | 0 | 2 | dk.sds.nsp.sor.sorus.util | 6 | 1105 | 99% | 1 | 15 | 93% | 3 | 30 | 2 | 167 | 2 | 21 | 0 | 4 |
dk.sds.nsp.sor.sorus.exception | 5 | 61 | 92% | 0 | 0 | N/A | 1 | 12 | 2 | 26 | 1 | 12 | 0 | 5 | |||||||||||||||
dk.sds.nsp.sor.sorus.util.mapping.service | 3 | 1186614 | 99% | 50 | 12674 | 96%100% | 61 | 11463 | 1 | 3762201 | 1 | 4026 | 0 | 1 | |||||||||||||||
Total | 796790 | 74015108 | 90%86% | 6452 | 444240 | 87%82% | 11197 | 730487 | 184182 | 20961390 | 5957 | 434315 | 5 | 3936 |
Nærmere uddybning af hver pakke kan findes i JaCoCo rapporten, som bliver genereret ved hver eksekvering af unit tests.
...
Unit tests gør flittig brug af mocking frameworked Mockito i tests, for at kunne komme i forskellige situationer. De forskellige test klasser tester udelukkende på den klasse de er opkaldt efter, og alle andre er mocked af, for at kontrollere testmiljøet fuldstændigt.
Tests | ||
Class | Run | Skipped |
---|
AuditHelperTest |
1 | 0 | |
AuthenticationHelperTest | 3 | 0 |
AuthorizationHelperTest |
5 | 0 |
JaxBHelperTest |
12 | 0 |
PropertiesHelperTest |
15 | 0 |
SLALogHelperTest |
2 | 0 |
SORUpdateServiceTest |
14 | 0 |
StatusServiceTest |
7 | 0 |
WhitelistServiceTest |
3 | 0 |
DksServletTest |
6 | 0 |
SoapServletTest |
37 | 0 |
SorusV3ServletTest | 13 | 0 |
StatusServletTest |
5 | 0 |
CertificateParserTest |
9 | 0 |
ServiceV3BackendV3UtilTest |
50 | 0 |
Total |
182 | 0 |