Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
449 0 0 2 99.6% 19.85 s

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.europa.together.application 269 0 0 0 100% 12.45 s
org.europa.together.service 13 0 0 2 84.6% 0.129 s
org.europa.together.utils 97 0 0 0 100% 0.058 s
org.europa.together.exceptions 5 0 0 0 100% 0.024 s
org.europa.together.domain 65 0 0 0 100% 7.191 s

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.europa.together.application

- Class Tests Errors Failures Skipped Success Rate Time
ListTreeTest 41 0 0 0 100% 0.058 s
JakartaMailClientTest 15 0 0 0 100% 0.555 s
LogbackLoggerTest 10 0 0 0 100% 4.821 s
PropertyFileReaderTest 26 0 0 0 100% 0.045 s
JdbcActionsTest 12 0 0 0 100% 0.216 s
JacksonJsonToolsTest 6 0 0 0 100% 0.121 s
DaoPaginationTest 16 0 0 0 100% 0.285 s
ConfigurationHbmDAOTest 32 0 0 0 100% 0.485 s
FeatureFlagsFF4jTest 8 0 0 0 100% 0.462 s
JavaCryptoToolsTest 16 0 0 0 100% 2.152 s
VelocityRendererTest 8 0 0 0 100% 0.125 s
ImgSclrProcessorTest 29 0 0 0 100% 1.228 s
ZxingGeneratorTest 9 0 0 0 100% 0.178 s
SaxToolsTest 25 0 0 0 100% 0.972 s
NimbusJwtTest 7 0 0 0 100% 0.210 s
OpenPdfRendererTest 9 0 0 0 100% 0.536 s

org.europa.together.service

- Class Tests Errors Failures Skipped Success Rate Time
LoggingServiceTest 5 0 0 0 100% 0.009 s
ConfigurationServiceTest 3 0 0 0 100% 0.060 s
MailClientServiceTest 5 0 0 2 60.0% 0.060 s

org.europa.together.utils

- Class Tests Errors Failures Skipped Success Rate Time
ConstraintsTest 2 0 0 0 100% 0.002 s
StringUtilsTest 27 0 0 0 100% 0.020 s
FileUtilsTest 17 0 0 0 100% 0.011 s
ValidatorTest 51 0 0 0 100% 0.025 s

org.europa.together.exceptions

- Class Tests Errors Failures Skipped Success Rate Time
MisconfigurationExceptionTest 1 0 0 0 100% 0.005 s
TimeOutExceptionTest 1 0 0 0 100% 0.004 s
UnsupportedVersionExceptionTest 1 0 0 0 100% 0.003 s
DAOExceptionTest 1 0 0 0 100% 0.004 s
JsonProcessingExceptionTest 1 0 0 0 100% 0.008 s

org.europa.together.domain

- Class Tests Errors Failures Skipped Success Rate Time
CipherAlgorithmTest 1 0 0 0 100% 0.007 s
MailTest 16 0 0 0 100% 0.109 s
ByteOrderMarkTest 3 0 0 0 100% 0.044 s
JpaPaginationTest 1 0 0 0 100% 2.244 s
HashAlgorithmTest 1 0 0 0 100% 0.013 s
JdbcConnectionTest 2 0 0 0 100% 0.147 s
TreeNodeTest 10 0 0 0 100% 0.077 s
VersionTest 21 0 0 0 100% 0.101 s
ConfigurationDOTest 9 0 0 0 100% 4.442 s
LogLevelTest 1 0 0 0 100% 0.007 s

Test Cases

[Summary] [Package List] [Test Cases]

CipherAlgorithmTest

enumValues 0.003 s

ListTreeTest

failValidateTreeNodeWithDisconnectedParent 0.002 s
failIsLeafByEmptyTree 0.001 s
constructor 0.001 s
passValidateTree 0.002 s
getElementByNameNotExist 0.001 s
failIsNameUniqueByEmptyTree 0 s
failAddNodeOfSameUuid 0 s
getElementByNameInEmptyTree 0 s
failValidateTreeHasNoRoot 0 s
isLeaf 0.001 s
addNode 0 s
addRoot 0.001 s
countNodes 0.001 s
failGetNodeByUuidByEmptyTree 0 s
failNodeIsElementOfTree 0.001 s
failGetNodeByUuidByUuidNotExist 0.001 s
failAddEmptyNode 0.001 s
failMerge 0.001 s
failIsLeaf 0.001 s
getRoot 0 s
failAddRootTwice 0.001 s
merge 0.001 s
prune 0.002 s
pruneElementIsNotInTree 0.001 s
failRemoveNode 0.001 s
pruneLeaf 0.001 s
pruneRoot 0.001 s
getNodeByUuid 0.001 s
failPruneByEmptyNode 0.002 s
failPruneByEmptyTree 0.001 s
failValidateTreeNodeWithEmptyParent 0.001 s
countNodesEmptyTree 0.001 s
isNodeElementOfTree 0.001 s
getLeafCount 0 s
failValidateTreeHasMulitpleRoot 0.001 s
failGetRootNotExist 0 s
failAddNodeOfSameNameAndParent 0 s
failValidateByEmptyTree 0 s
isNameUnique 0.001 s
failValidateTreeRemoveNode 0.001 s
getElementsByName 0.001 s

JakartaMailClientTest

constructor 0.001 s
cleanConfiguration 0.001 s
failConnetSMTPServer 0.010 s
failLoadConfigurationFromDatabase 0.242 s
composeTextMailWithAttachment 0.044 s
testGetMailObject 0.004 s
initialConfiguration 0.001 s
tryLoadConfigEntryNotExist 0.041 s
composeTextMail 0.004 s
connectSMTPServer 0.003 s
composeHtmlMail 0.003 s
loadConfigurationFromFileSystem 0.003 s
loadConfigurationFromClasspath 0.002 s
failLoadConfigurationFromPropertyFile 0.001 s
loadConfigurationFromDatabase 0.022 s

ConstraintsTest

privateConstructor 0 s
generateToString 0.002 s

LogbackLoggerTest

constructor 0.007 s
failLog 0.002 s
catchException 0.001 s
fallbackConstructor 0.002 s
logInfo 0.001 s
logWarn 0.001 s
logDebug 0.001 s
logError 0.001 s
logTrace 0.001 s
catchNullpointerException 0.002 s

LoggingServiceTest

constructor 0 s
failReadLogConfig 0.001 s
readLogConfig 0.001 s
writeLogConfig 0.003 s
failWriteLogConfig 0.002 s

StringUtilsTest

shrinkContent 0.001 s
createDateFromString 0.001 s
md5HashToInt 0.001 s
failCreateDateFromString 0 s
privateConstructor 0 s
generateStringOfLength 0.001 s
encodeBase64Url 0 s
withoutBom 0.002 s
concatString 0 s
failDecodeBase64Url 0.001 s
sha512HashToInt 0.001 s
failRemoveBom 0.001 s
sha256HashToInt 0 s
removeUtf16BeBom 0.001 s
removeUtf16LeBom 0.001 s
shaHashToInt 0 s
byteToString 0 s
generateLoremIpsum 0 s
isNotEmpty 0.001 s
stringListBuilder 0 s
removeUtf8Bom 0 s
removeUtf32BeBom 0 s
removeUtf32LeBom 0 s
decodeBase64Url 0.001 s
generateUUID 0 s
isEmpty 0 s
replaceXmlCharacters 0.001 s

MailTest

subject 0.004 s
addRecipentDetectDoubleEntries 0.010 s
constructor 0.001 s
addRecipentValidationFail 0.008 s
addAttachmentList 0.014 s
attachments 0.004 s
recipients 0.009 s
setPlainMimeType 0.003 s
getDefaultMimeType 0.003 s
addRecipientList 0.007 s
attachmentSize 0.003 s
content 0.002 s
failAddNotExistingAttachment 0.003 s
failAddEmptyAttachment 0.003 s
addAttachmentLimitSize 0.007 s
setHtmlMimeType 0.002 s

PropertyFileReaderTest

addProperty 0.002 s
getPropertyAsFloat 0.001 s
clearProperties 0.001 s
overwriteAddPropertyList 0.001 s
constructor 0.001 s
failAddEmptyPropertyList 0.001 s
updateProperty 0 s
getPropertyAsBoolean 0.001 s
failUpdateProperty 0.001 s
appendPropertiesFromExternalFile 0 s
failGetPropertyAsBoolean 0.002 s
failGetPropertyAsDouble 0.002 s
failGetPropertyAsFloat 0.002 s
failGetPropertyAsInt 0.002 s
getPropertyList 0.001 s
failGetPropertyAsString 0.001 s
fileAppendPropertiesFromClasspath 0.001 s
addPropertyList 0.001 s
appendPropertiesFromClasspath 0 s
getPropertyAsDouble 0.001 s
failAddProperty 0.001 s
removeProperty 0.002 s
getPropertyAsString 0.003 s
failRemoveProperty 0.002 s
failAppendPropertiesFromExternalFile 0.001 s
getPropertyAsInt 0.001 s

JdbcActionsTest

getResultSet 0.039 s
constructor 0.001 s
executeQuery 0.029 s
sqlFileNotFound 0.018 s
failExecuteQuery 0.023 s
failGetJdbcMetaData 0.001 s
executeSqlFileFromClasspath 0.025 s
failExecuteQueryNoConnection 0.002 s
failConnect 0.003 s
connect 0.024 s
fallbackLoadProperties 0.021 s
getJdbcMetaData 0.016 s

MisconfigurationExceptionTest

exceptionObject 0.002 s

JacksonJsonToolsTest

failDeserializeJsonToObject 0.075 s
deserializeJsonToObject 0.006 s
failDeserializeJsonAsObjectList 0.010 s
deserializeJsonAsObjectList 0.003 s
failSerializeObjectToJson 0.001 s
serializeObjectToJson 0.022 s

TimeOutExceptionTest

exceptionObject 0.003 s

DaoPaginationTest

fetchLessResultsThanAPage 0.026 s
simpleResultIntegerEqualFilterWithPagination 0.017 s
simpleResultDateEqualFilterWithPagination 0.022 s
simpleResultFloatEqualFilterWithPagination 0.015 s
listAllDesc 0.012 s
listAllAsc 0.013 s
emptyListAll 0.017 s
complexResultFilterWithPagination 0.011 s
simpleResultFilterWhitoutPagination 0.019 s
pageAhead 0.016 s
fetchEndOfList 0.015 s
simpleResultBooleanEqualFilterWithPagination 0.015 s
limitAsc 0.015 s
pageBackwards 0.009 s
limitDesc 0.009 s
simpleResultStringEqualFilterWithPagination 0.008 s

ByteOrderMarkTest

enumName 0.010 s
enumValues 0.004 s
getBytes 0.015 s

JpaPaginationTest

domainObject 2.239 s

FileUtilsTest

appendFile 0 s
failInputStreamToByteArray 0 s
privateConstructor 0.001 s
readFileStream 0 s
failReadFileStream 0.001 s
copyFile 0 s
inputStreamToByteArray 0 s
listFileTree 0.001 s
failCopyFile 0 s
failGetFileSize 0.001 s
failWriteStringToFile 0 s
failAppendFile 0 s
failListFileTree 0 s
writeStringToFile 0 s
getFileSize 0.001 s
writeEmptyFile 0.001 s
listFileTreeWithEmptyDir 0 s

ValidatorTest

isDateNotInRange_NullPointer 0.001 s
isDateBefore 0 s
privateConstructor 0.001 s
isBooleanRegex 0 s
isNotBooleanRegex 0.001 s
isNotTextRegex 0 s
isNotCharacterRegex 0.001 s
isVersionNumber 0 s
isNotVersionNumber_StartWithZero 0 s
isCharacterRegex 0 s
isInvalidIP4_Ending 0.001 s
isInvalidIP4_Format 0 s
isNotDigitRegex 0 s
isValidIP4ForLocalhostWithPort 0.001 s
isDateNotAfter 0 s
isDateNotInRange_After 0.001 s
isRegexLetters 0 s
isIntegerInRange 0 s
isNotRegexLetters 0.001 s
isIP4_WithInvalidPort 0 s
isInvalidEMail 0.001 s
isInvalidIsbn_empty 0 s
isInvalidIsbn13_toShort 0.001 s
isInvalidIsbn_NotInterger 0 s
isValidIP4ForLocalhost 0 s
isDigitRegex 0 s
isTextRegex 0 s
isDateNotBefore 0.001 s
isNotFloatingPointRegex 0 s
isValidIP4_WithPort 0.001 s
isDateNotInRange 0 s
isTime24Regex 0 s
isNotRGBColor 0 s
isInvalidIsbn10 0.001 s
isInvalidIsbn13 0 s
isFloatingPointRegex 0.001 s
isValidIsbn10 0 s
isValidIsbn13 0.001 s
isRGBColor 0 s
isDateAfter 0 s
isDateNotInRange_LowerBoundry 0.001 s
isInvalidIsbn10_toShort 0 s
isDateNotInRange_Before 0.001 s
isNotVersionNumber_Format 0 s
isInvalidIP4_LedingZeros 0.001 s
isIntegerNotInRange 0.001 s
isDateNotInRange_UpperBoundry 0 s
isDateInRange 0 s
isNotTime24Regex 0 s
isValidIP4 0.001 s
isValidEMail 0 s

ConfigurationHbmDAOTest

updateNotExist 0.018 s
getValueByKeyNoExist 0.013 s
constructor 0.005 s
getHistoryOfAEntry 0.021 s
create 0.038 s
delete 0.026 s
failGetPrimaryKeyOfObject 0.011 s
getAllModuleEntries 0.023 s
update 0.031 s
failUpdateConfigurationEntries 0.011 s
failRestoreKeyToDefault 0.010 s
deleteNotExist 0.009 s
failCreate 0.007 s
failDelete 0.009 s
getAllSetEntries 0.013 s
getPrimaryKeyOfObject 0.008 s
countEntries 0.011 s
serilizeJsonasObject 0.012 s
getDeprecatedEntries 0.012 s
find 0.007 s
getConfigurationByKeyNoExist 0.009 s
failUpdate 0.011 s
deserializeJsonAsObjectList 0.008 s
listAll 0.014 s
deserializeJsonAsObject 0.010 s
restoreKeyToDefault 0.021 s
failFind 0.007 s
updateConfigurationEntries 0.030 s
getConfigurationByKey 0.013 s
findNotExist 0.007 s
getValueByKey 0.009 s
getValueByKeyFallbackToDefault 0.009 s

HashAlgorithmTest

enumValues 0.007 s

FeatureFlagsFF4jTest

updateFeatureNotExist 0.155 s
deleteFeature 0.056 s
failConnectDatabase 0.008 s
deactivatedFeatureStore 0.009 s
addFeature 0.052 s
activateDeactivateFeature 0.057 s
activateFeatureFlags 0.035 s
updateFeature 0.056 s

JavaCryptoToolsTest

writeKeyPairToFile 0.868 s
writeKeyPairToFileInHomeDir 1.072 s
loadPrivateRsaKeyFromFile 0.001 s
loadPublicKeyRsaFromFile 0.001 s
failLoadPrivateKeyFile 0.001 s
constructor 0.001 s
calculateRsaKeyPair 0.192 s
failCalculateKeyPair 0.001 s
calculateMD5Hashes 0.001 s
calculateSHA512Hashes 0.001 s
failWriteKeyPairToFile 0 s
getMaxKeySize 0.001 s
failCalculateHashes 0.001 s
calculateSHA1Hashes 0.002 s
failLoadPublicKeyFile 0.002 s
calculateSHA256Hashes 0.001 s

UnsupportedVersionExceptionTest

exceptionObject 0.002 s

VelocityRendererTest

constructor 0.001 s
loadContentByFileResource 0.089 s
failLoadContentByClasspathResource 0.005 s
generateComplexContent 0.012 s
generateContent 0.003 s
failLoadContentByFileResource 0.003 s
generateContentWithProperties 0.003 s
loadContentByClasspathResource 0.003 s

JdbcConnectionTest

privateConstructor 0.005 s
jdbcMetData 0.136 s

DAOExceptionTest

exceptionObject 0.001 s

ImgSclrProcessorTest

resizeImageReduce 0.204 s
failSaveImage 0.001 s
constructor 0.001 s
failResizeImage 0.011 s
imageFlipVertical 0.021 s
saveImageAsJpeg 0.006 s
failFlipVertical 0.001 s
failFlipHorizontal 0.001 s
saveImageWrongType 0.006 s
imageDimensions 0.005 s
failCropImage 0.005 s
failLoadImage 0 s
resizeImageInflate 0.043 s
failCalculateImageSize 0.005 s
generateToString 0.715 s
loadImageAsFile 0.009 s
failResize 0 s
reset 0.004 s
loadImageAsBufferedImage 0.003 s
generateToStringWhitoutMetaData 0.003 s
saveImageAsGif 0.036 s
saveImageAsJpg 0.028 s
saveImageAsPng 0.026 s
imageFlipHorizontal 0.018 s
cropImage 0.014 s
failImageRotate 0.001 s
calculateImageSize 0 s
resizeImageNoEffect 0.021 s
imageRotate 0.021 s

TreeNodeTest

equalByDiffrentUuid 0.020 s
notEqualByCopyAndManipulate 0.011 s
correctBeanConstruction 0.004 s
notEqualByNull 0.002 s
generateToString 0.003 s
createDomainObjectBySetter 0.002 s
createDomainObject 0.008 s
notEqualBySameRootAndDiffrentName 0.002 s
createDomainObjectWithDifferentValueObjects 0.003 s
equalByCopy 0.004 s

ZxingGeneratorTest

constructor 0.001 s
emptyVCard 0.001 s
failDecode 0.002 s
failEncode 0.002 s
calendar 0.039 s
geoInfo 0.006 s
url 0.006 s
vCard 0.050 s
qrCodeGenerator 0.062 s

SaxToolsTest

invalidDtd 0.023 s
constructor 0 s
xsltTransformation 0.161 s
validSchemaByWebResorce 0.733 s
failSetSchema 0.002 s
failTransformation 0.001 s
invalidSchema 0.006 s
failValidation 0.001 s
isNotWellFormed 0.004 s
resetExternalSchemaFile 0.001 s
parseXmlString 0.002 s
vValidDtd 0.005 s
validInternalDtd 0.002 s
prettyPrintXml 0.001 s
failParseXmlString 0.001 s
shrinkXml 0.001 s
parseXmlFile 0.001 s
prettyPrintXmlInlineDtd 0.001 s
failPrettyPrint 0 s
setSchema 0.004 s
isWellFormed 0.001 s
noGrammar 0.001 s
failParsingXmlFile 0.001 s
writeXmlToFile 0.002 s
failWriteXmlToFile 0.001 s

ConfigurationServiceTest

constructor 0.005 s
resetModuleToDefault 0.029 s
filterMandatoryFieldsOfConfigSet 0.008 s

VersionTest

failGetVersion_Minor 0.008 s
failGetVersion_Patch 0.003 s
failCreateDomainObject 0.003 s
isEqualByMajor 0.004 s
isEqualByMinor 0.002 s
isEqualByPatch 0.003 s
isNotEqualByMajor 0.002 s
isNotEqualByMinor 0.004 s
isNotEqualByPatch 0.002 s
failGetVersion_Majorl 0.003 s
getVersion_PatchWithLabel 0.002 s
failGetVersion_MajorWithLabel 0.004 s
getVersion_MinorWithLabel 0.004 s
getVersion_Major 0.003 s
getVersion_Minor 0.003 s
getVersion_Patch 0.002 s
sort 0.005 s
isNotEqual 0.004 s
compare 0.007 s
isEqualByDiffrentLabel 0.005 s
processHashCode 0.004 s

ConfigurationDOTest

validationEmptyValue 0.095 s
domainObject 0.046 s
correctBeanConstruction 0.002 s
validationEmptyComment 0.001 s
createDomainObjectBySetter 0.001 s
prePersist 0.002 s
isNotEqual 0.002 s
isEqual 0.002 s
hasValidGetter 0.003 s

NimbusJwtTest

constructor 0.002 s
failParseHMAC512SingedJws 0.097 s
parseHMAC512SingedJws 0.014 s
parseHMAC512SingedJwt 0.023 s
buildHMAC512SignedJws 0.008 s
buildHMAC512SignedJwt 0.005 s
failparseHMAC512SingedJwt 0.010 s

MailClientServiceTest

constructor 0.004 s
sendBulkMail 0 s
- void org.europa.together.service.MailClientServiceTest.sendBulkMail() throws java.lang.Exception is @Disabled -
loadInitConfiguration 0.010 s
sendMail 0 s
- void org.europa.together.service.MailClientServiceTest.sendMail() throws java.lang.Exception is @Disabled -
updateConfiguration 0.029 s

OpenPdfRendererTest

failRenderHtmlToPdf 0.354 s
constructor 0.001 s
failRemovePages 0.001 s
failWritePdf 0.001 s
removePages 0.105 s
failLoadPdf 0.001 s
loadPdf 0.003 s
simpleRenderHtmlToPdf 0.060 s
loadAndWritePdf 0.005 s

JsonProcessingExceptionTest

exceptionObject 0.004 s

LogLevelTest

enumValues 0.003 s

Failure Details

[Summary] [Package List] [Test Cases]


sendBulkMail
- skipped: void org.europa.together.service.MailClientServiceTest.sendBulkMail() throws java.lang.Exception is @Disabled
sendMail
- skipped: void org.europa.together.service.MailClientServiceTest.sendMail() throws java.lang.Exception is @Disabled