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 | 448453 | 0 | 0% | 14 | 0 | 0% | 32 | 32 | 929192 | 91 | 25 | 25 | 3 | 3 | ||||||||||||||
| dk.sds.nsp.sor.sorus.servlethelper | 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 | 58 | 1058 | 94% | 7 | 42 | 85% | 8 | 42 | 12 | 267 | 1 | 12 | 0 | 4 |
| dk.sds.nsp.sor.sorus.helperservlet | 18334 | 6151536 | 77%97% | 208 | 2299 | 52%92% | 209 | 52139 | 5011 | 165406 | 21 | 2869 | 0 | 75 | ||||||||||||||
| dk.sds.nsp.sor.sorus.modelservice | 9026 | 231678 | 71%96% | 030 | 28 | N/A90% | 205 | 6660 | 248 | 95188 | 202 | 6639 | 0 | 43 | ||||||||||||||
| 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.servicehelper.proxy | 2118 | 82437 | 97%67% | 21 | 291 | 93%50% | 3 | 6166 | 3 | 22111 | 12 | 395 | 0 | 31 | ||||||||||||||
| dk.sds.nsp.sor.sorus.exceptionutil | 56 | 611105 | 92%99% | 010 | 15 | N/A93% | 13 | 1230 | 2 | 26167 | 12 | 1221 | 0 | 54 | ||||||||||||||
| dk.sds.nsp.sor.sorus.helper.proxyexception | 5 | 61 | 92% | 050 | 90%01 | N/A | 1 | 50%12 | 12 | 626 | 1 | 1112 | 0 | 5 | 0 | 1 | ||||||||||||
| dk.sds.nsp.sor.sorus.util.mapping.service | 3 | 906614 | 99% | 10 | 1574 | 93%100% | 21 | 2763 | 1 | 133201 | 1 | 1926 | 0 | 51 | ||||||||||||||
| Total | 837790 | 37455108 | 81%86% | 4552 | 109240 | 70%82% | 8997 | 299487 | 191182 | 10131390 | 5357 | 208315 | 45 | 3336 | ||||||||||||||
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 | MethodRun | ResultSkipped |
|---|---|---|
| AuditHelperTestvalidErrorSlaLogStored | 1 | 0 |
| validSuccessSlaLogStoredAuthenticationHelperTest | ||
| CertificateParserTest | invalidSubjectShouldSucceed | |
| switchedSubjectOrderShouldStillSucceed | ||
| invalidIdShouldSucceed | ||
| uidShouldGiveVocesType | ||
| invalidIdNameShouldGiveUnknownType | ||
| compactFormatShouldStillSucceed | ||
| switchedSerialOrderShouldStillSucceed | ||
| validSubjectLine | ||
| ridShouldGiveMocesType | ||
| SORUpdateServiceTest | validEditEanLocationCodeEdiAdministratorRequestShouldSucceed | |
| validCreateSorEntityRequestShouldSucceed | ||
| errorDuringCreateSorEntityRequestShouldGiveException | ||
| validReplaceSorEntityRequestShouldSucceed | ||
| validMoveEanLocationCodeRequestShouldSucceed | ||
| validMoveSorEntityRequestShouldSucceed | ||
| validEditEanLocationCodeRegionRequestShouldSucceed | ||
| validUpdateEdiTypesRequestShouldSucceed | ||
| validEditSorEntityRequestShouldSucceed | ||
| unknownRequestShouldSucceed | ||
| validCloseSorEntityRequestShouldSucceed | ||
| validEditEanLocationCodeSystemSupplierRequestShouldSucceed | ||
| validEditEanLocationCodeSystemTypeRequestShouldSucceed | ||
| validEditEanLocationCodeCommunicationSupplierRequestShouldSucceed | ||
| PropertiesHelperTest | getInvalidBooleanPropertyReturnFalse | |
| getExistingBooleanPropertyNotDefault | ||
| getExistingBooleanProperty | ||
| getExistingStringProperty | ||
| getNonexistentBooleanPropertyReturnDefault | ||
| getPropertiesTest | ||
| getExistingStringPropertyNotDefault | ||
| getNonexistentStringPropertyReturnNull | ||
| getNonexistentStringPropertyReturnDefault | ||
| getNonexistentBooleanPropertyReturnFalse | ||
| AuthorizationHelperTest | cvrNotWhitelistedShouldFailAuthorization | |
| tooLowAuthenticationLevelShouldFailAuthorization | ||
| expiredTokenShouldFailAuthorization | ||
| authorizeRequestValidShouldSucceed | ||
| invalidTypeShouldFailAuthorization | ||
| JaxBHelperTest | correctUnmarshalElementShouldSucceed | |
| invalidWriterMarshalWriteShouldFail | ||
| nullElementUnmarshalShouldFail | ||
| nullObjectMarshalWriteShouldFail | ||
| incorrectElementUnmarshalShouldFail | ||
| correctMarshalWriteObjectShouldSucceed | ||
| correctMarshalObjectShouldSucceed | ||
| nullWriterMarshalWriteShouldFail | ||
| nullClassUnmarshalShouldFail | ||
| incorrectClassUnmarshalShouldFail | ||
| nullObjectMarshalShouldFail | ||
| DksServletTest | callDoGetInvalidWriterShouldFail | |
| callDoGetInvalidAsctimeShouldSucceed | ||
| callDoGetNoHeaderShouldSucceed | ||
| callDoGetValidRFC1123ShouldSucceed | ||
| callDoGetValidRFC850ShouldSucceed | ||
| callDoGetInvalidFormatShouldSucceed | ||
| SorusServletTest | callDoPostValidEditEanLocationCodeEdiAdministratorShouldSucceed | |
| callDoGetShouldSucceed | ||
| callDoPostShortSoapAction2ShouldFail | ||
| callDoPostWithoutSoapActionQuotesShouldFail | ||
| callDoPostShortSoapAction4ShouldFail | ||
| callDoPostValidEditEanLocationCodeCommunicationSupplierShouldSucceed | ||
| callDoPostValidEditEanLocationCodeRegionShouldSucceed | ||
| callDoGetBackendUpShouldSucceed | ||
| callDoPostValidCreateSorEntityShouldSucceed | ||
| callDoGetWsdlShouldSucceed | ||
| callDoGetBackendDownShouldSucceed | ||
| callDoPostShortSoapAction1ShouldFail | ||
| callDoPostValidMoveEanLocationCodeShouldSucceed | ||
| callDoPostSoapActionWithoutQuotesShouldFail | ||
| callDoPostValidEditSorEntityShouldSucceed | ||
| callDoPostShortSoapAction3ShouldFail | ||
| callDoPostValidEditEanLocationCodeSystemTypeShouldSucceed | ||
| callDoPostUnknownSoapActionShouldFail | ||
| callDoPostValidReplaceSorEntitiesShouldSucceed | ||
| callDoPostValidUpdateEdiTypesShouldSucceed | ||
| callDoPostValidMoveSorEntityShouldSucceed | ||
| callDoPostExceptionCreateSorEntityShouldFail | ||
| callDoPostValidCloseSorEntityShouldSucceed | ||
| callDoPostValidEditEanLocationCodeSystemSupplierShouldSucceed | ||
| StatusServiceTest | checkReset24hTest | |
| twoSuccessfulAddRequestsTest | ||
| oneSuccessfulAddRequestTest | ||
| twoFailedAddRequestsTest | ||
| noAddRequestTest | ||
| oneFailedAddRequestTest | ||
| twoMixedAddRequestsTest | ||
| AuthenticationHelperTest | missingHealerShouldFailAuthentication | |
| invalidTokenShouldFailAuthentication | ||
| validHeaderShouldSucceedAuthentication | ||
| WhitelistServiceTest | checkCvrWhitelistedValidShouldSucceed | |
| checkCvrWhitelistedInvalidShouldFail | ||
| checkCvrWhitelistedErrorShouldFail | ||
| StatusServletTest | callDoGetShouldSucceed | |
| callDoGetErrorWriterShouldFail | ||
...
| 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 |