Page History
AFVENTER ENDELIG GODKENDELSE
Navitabs | ||||
---|---|---|---|---|
| ||||
Indholdsfortegnelse
Table of Contents | ||||
---|---|---|---|---|
|
Code coverage
Code coverage rapporten bliver håndteret af et JaCoCo plugin i Maven.
Det er kun klasser som er blevet udviklet i forbindelse med denne service. Alle klasser der er autogenereret, eller som kommer i form af afhængigheder, de er blevet sorteret fra i rapporten.
En anden vigtig detalje at pointere, de klasser som kobler direkte op med tredjepart services (som SDM eller SOR databaser), ingen unit tests kører på dem. Så hele pakken dk.sds.nsp.sor.sorls.service.external
har ingen tests på sig overhovedet.
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.sorls.service.external | 374 | 8 | 2% | 24 | 0 | 0% | 19 | 21 | 73 | 75 | 7 | 9 | 0 | 2 |
dk.sds.nsp.sor.sorls.servlet | 437 | 859 | 66% | 25 | 25 | 50% | 29 | 53 | 94 | 301 | 11 | 25 | 0 | 4 |
dk.sds.nsp.sor.sorls.helper | 22 | 709 | 96% | 6 | 32 | 81% | 6 | 52 | 7 | 158 | 0 | 33 | 0 | 7 |
dk.sds.nsp.sor.sorls.model | 0 | 321 | 100% | 0 | 0 | N/A | 0 | 66 | 0 | 95 | 0 | 66 | 0 | 4 |
dk.sds.nsp.sor.sorls | 24 | 0 | 0% | 0 | 0 | N/A | 2 | 2 | 3 | 3 | 2 | 2 | 1 | 1 |
dk.sds.nsp.sor.sorls.service | 120 | 1421 | 92% | 22 | 108 | 83% | 23 | 97 | 22 | 319 | 1 | 30 | 1 | 4 |
dk.sds.nsp.sor.sorls.exception | 5 | 64 | 92% | 0 | 0 | N/A | 1 | 11 | 2 | 25 | 1 | 11 | 0 | 4 |
dk.sds.nsp.sor.sorls.util | 51 | 2106 | 97% | 12 | 110 | 90% | 14 | 93 | 12 | 396 | 3 | 31 | 0 | 8 |
dk.sds.nsp.sor.sorls.helper.proxy | 18 | 37 | 67% | 1 | 1 | 50% | 3 | 6 | 3 | 11 | 2 | 5 | 0 | 1 |
Total | 1051 | 5525 | 84% | 90 | 270 | 75% | 97 | 401 | 216 | 1383 | 27 | 212 | 2 | 35 |
Nærmere uddybning af hver pakke kan findes i JaCoCo rapporten, som bliver genereret ved hver eksekvering af unit tests.
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.
Class | Method | Result |
---|---|---|
AuditHelperUnitTest | auditLog | |
AuthenticationHelperTest | validHeaderShouldSucceedAuthentication | |
missingHeaderShouldFailAuthentication | ||
invalidTokenShouldFailAuthentication | ||
AuthorizationHelperTest | authorizeRequestValidShouldSucceed | |
expiredTokenShouldFailAuthorization | ||
tooLowAuthenticationLevelShouldFailAuthorization | ||
invalidTypeShouldFailAuthorization | ||
cvrNotWhitelistedShouldFailAuthorization | ||
JaxBHelperTest | correctMarshalWriteObjectShouldSucceed | |
nullObjectMarshalWriteShouldFail | ||
nullWriterMarshalWriteShouldFail | ||
invalidWriterMarshalWriteShouldFail | ||
correctMarshalObjectShouldSucceed | ||
nullObjectMarshalShouldFail | ||
correctUnmarshalElementShouldSucceed | ||
nullClassUnmarshalShouldFail | ||
incorrectClassUnmarshalShouldFail | ||
nullElementUnmarshalShouldFail | ||
incorrectElementUnmarshalShouldFail | ||
PropertiesHelperTest | getPropertiesTest | |
getExistingStringProperty | ||
getExistingIntegerProperty | ||
getNonexistentStringPropertyReturnNull | ||
getExistingStringPropertyNotDefault | ||
getExistingBooleanProperty | ||
getNonexistentBooleanPropertyReturnFalse | ||
getInvalidBooleanPropertyReturnFalse | ||
getExistingBooleanPropertyNotDefault | ||
getNonexistentBooleanPropertyReturnDefault | ||
getNonexistentStringPropertyReturnDefault | ||
SLALogHelperTest | validSuccessSlaLogStored | |
validErrorSlaLogStored | ||
ModelUnitTest | serviceStatus | |
certificateInformation | ||
requestInformation | ||
certificateSerialNumber | ||
SorlsLookupServiceGetSorEntityOperationUnitTest | getSorEntity | |
getSorEntityALLDBFieldsNull | ||
getSorEntityNoDataFound | ||
getSorEntityException | ||
getSorEntitySqlException | ||
getSorEntityNamingException | ||
SorlsLookupServiceSearchOperationUnitTest | searchAll | |
searchAllDBFieldsAllNull | ||
searchDefaultWithParametersEntityNameAndLocalCodeAndNOSearchScopeSorId | ||
searchAllChildrenWithParametersEntityNameAndLocalCodeAndSearchScopeSorId | ||
searchDirectChildrenWithParametersEntityNameAndLocalCodeAndSearchScopeSorId | ||
searchAllParameters | ||
searchAllChildren | ||
searchDirectChildren | ||
searchDefaultNoSearchTypeNoSearchScopeId | ||
searchSqlException | ||
searchNamingException | ||
SorlsLookupServiceShakSorMapOperationUnitTest | shakSorMap | |
shakSorMapALLDBFieldsNull | ||
shakSorMapNoDataFound | ||
shakSorMapException | ||
shakSorMapSqlException | ||
shakSorMapNamingException | ||
SorlsLookupServiceSorShakMapOperationUnitTest | sorShakMap | |
sorShakMapAllDBFieldsNull | ||
sorShakMapNoDataFound | ||
sorShakMapException | ||
sorShakMapSqlException | ||
sorShakMapNamingException | ||
SorlsLookupServiceUtilityMethodsUnitTest | constructSearchQuery | |
dateToXMLGregorianCalendar | ||
WhitelistServiceUnitTest | checkCvrWhitelistedValidShouldSucceed | |
checkCvrWhitelistedInvalidShouldFail | ||
checkCvrWhitelistedErrorShouldFail | ||
DksServletUnitTest | callDoGetNoHeaderShouldSucceed | |
callDoGetValidRFC1123ShouldSucceed | ||
callDoGetValidRFC850ShouldSucceed | ||
callDoGetValidAsctimeShouldSucceed | ||
callDoGetInvalidFormatShouldSucceed | ||
callDoGetInvalidWriterShouldFail | ||
SorlsServletUnitTest | doGet | |
doPostInvalidSoapAction | ||
getSlaLogPoint | ||
StatusServletUnitTest | callDoGetShouldSucceed | |
callDoGetErrorWriterShouldFail | ||
CertificateParserUnitTest | parseAlternativeIdentifier | |
ResponseHelperTest | writeSuccess | |
writeError |
Totalt set er der udført 85 unit tests.
Performancemålinger
TBD
Endurance test resultater
TBD