Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
149 0 0 2 98.658% 15.873

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
info.magnolia.imaging.setup 11 0 0 0 100% 6.474
info.magnolia.imaging.functions 11 0 0 0 100% 0.034
info.magnolia.imaging.util 51 0 0 0 100% 1.833
info.magnolia.imaging 21 0 0 0 100% 1.231
info.magnolia.imaging.operations 2 0 0 0 100% 0.482
info.magnolia.imaging.caching 6 0 0 2 66.667% 0.645
info.magnolia.imaging.operations.cropresize 29 0 0 0 100% 1.408
info.magnolia.imaging.parameters 3 0 0 0 100% 0.53
info.magnolia.imaging.operations.load 11 0 0 0 100% 2.476
info.magnolia.imaging.variation 4 0 0 0 100% 0.76

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

info.magnolia.imaging.setup

Class Tests Errors Failures Skipped Success Rate Time
ImagingModuleVersionHandlerTest 11 0 0 0 100% 6.474

info.magnolia.imaging.functions

Class Tests Errors Failures Skipped Success Rate Time
ImagingTemplatingFunctionsTest 11 0 0 0 100% 0.034

info.magnolia.imaging.util

Class Tests Errors Failures Skipped Success Rate Time
PathSplitterTest 18 0 0 0 100% 0.002
ImageUtilTest 17 0 0 0 100% 1.823
ColorConverterTest 16 0 0 0 100% 0.008

info.magnolia.imaging

Class Tests Errors Failures Skipped Success Rate Time
ImagingModuleTest 3 0 0 0 100% 0.693
OutputFormatTest 5 0 0 0 100% 0
DefaultImagingSupportTest 4 0 0 0 100% 0
ImagingServletTest 5 0 0 0 100% 0.104
SelfTest 2 0 0 0 100% 0.429
DefaultImageGeneratorTest 2 0 0 0 100% 0.005

info.magnolia.imaging.operations

Class Tests Errors Failures Skipped Success Rate Time
ImageOperationChainTest 2 0 0 0 100% 0.482

info.magnolia.imaging.caching

Class Tests Errors Failures Skipped Success Rate Time
CachingImageStreamerRepositoryTest 5 0 0 2 60% 0.645
AbstractContentBasedCachingStrategyTest 1 0 0 0 100% 0

info.magnolia.imaging.operations.cropresize

Class Tests Errors Failures Skipped Success Rate Time
CoordsTest 2 0 0 0 100% 0
AutoCropAndResizeTest 15 0 0 0 100% 0.48
MultiStepResizerTest 1 0 0 0 100% 0.233
BoundedResizeTest 9 0 0 0 100% 0.322
CropAndResizeQualityTest 2 0 0 0 100% 0.373

info.magnolia.imaging.parameters

Class Tests Errors Failures Skipped Success Rate Time
BinaryJcrNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.177
BinaryNodeParameterProviderFactoryTest 1 0 0 0 100% 0.181
BinaryNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.172

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 9 0 0 0 100% 2.159
FromBinaryNodeTest 2 0 0 0 100% 0.317

info.magnolia.imaging.variation

Class Tests Errors Failures Skipped Success Rate Time
DefaultVariationTest 4 0 0 0 100% 0.76

Test Cases

[Summary] [Package List] [Test Cases]

ImagingModuleTest

moduleStopUnRegistersSpiProviders 0.248
moduleStartRegistersSpiProviders 0.158
imagingCacheIsFlushedAfterConfigChange 0.287

AbstractLoaderTest

transparencyOfIndexedImageIsNotLost 0.208
gifToJpgCase4BitImage 0.26
gifToGifCase4BitImage 0.268
bufferedImageFromPngWithAlpha 0.231
backgroundColor 0.24
bufferedImageFromBmp 0.193
bufferedImageFromJpg 0.253
bufferedImageFromPng 0.31
gifToPngCase4BitImage 0.196

CachingImageStreamerRepositoryTest

makeSureMIMETypeIsCorrectlyPersisted 0.228
shouldStoreNothingWhenUsingNullCachingStrategy 0
skipped
generateAndStoreIsDoneUnderSystemContext 0.189
concurrencyAndJCRSessions 0
skipped
requestForSimilarUncachedImageOnlyGeneratesItOnce 0.228

BinaryJcrNodeIdentifierParameterProviderFactoryTest

pathInfoSplitting 0.177

OutputFormatTest

progressiveFlagIsSetProperlyWhenFalse 0
compressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
qualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
compressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
progressiveFlagIsSetProperlyWhenTrue 0

BinaryNodeParameterProviderFactoryTest

pathInfoSplitting 0.181

CoordsTest

throwsExceptionWhenCalculatingWidthAndHeightWithInvalidCoordinates 0
calculatesWidthAndHeightProperly 0

PathSplitterTest

leadingAndTrailingSlashesAreIgnored 0
dotsInPathNotAtTheEndAreNotTrimmed 0
dotsInPathOnlyOneToSplitTrimExtension 0
trimExtensionProperly 0
documentedExample 0
dotsInNames 0
emptyElementsAfterLeadingSlashWorkToo 0
remainingCanBeCalledFromTheStartEvenIfThisSeemsQuiteUseless 0
nullsAreHandledGracefullyCauseWeAreThatNice 0.001
extensionIsTrimmedByDefault 0
emptyStringYieldsNoResults 0
remainingCanBeCalledEvenIfWeAlreadyReachedTheLastElement 0
emptyElementsMatter 0
onlyOneToSplit 0
nextAndSkipCallsDontOverlapEachOther 0
dotsInPathOnlyOneToSplit 0
emptyElementsBeforeTrailingSlashWorkToo 0
extensionCanBeKeptAndIsNotCountingAsAnElement 0.001

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0
createLinkForNonExistingVariationDefaultsToOriginalImage 0
createLinkForOriginalVariation 0
createLinkForNullVariationDefaultsToOriginalImage 0

AutoCropAndResizeTest

noResizeIfWidthAndHeightAreNotSpecified 0.009
resizesProportionallyIfOnlyWidthIsSpecified 0.008
resizesProportionallyIfOnlyHeightIsSpecified 0.007
verticalSourceWithVerticalRatioIsAlsoSwell 0.037
verticalRatiosAlsoWork 0.021
doesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.025
doesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.023
thereWereVerticalBlackBordersToo 0.008
justResizeIfTargetRatioIsEquivalentToSourceRatio 0.023
squareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.174
respectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.028
squareTargetUsesLargestPossibleZoneForHorizontalSource 0.037
resizesUsingBothWidthAndHeightIfSpecified 0.011
verticalSourceIsHandledJustAsWell 0.061
philippSawBlackBorders 0.008

AbstractContentBasedCachingStrategyTest

selfSanity 0

MultiStepResizerTest

jpgNeedsAnEyeToCheck 0.233

BoundedResizeTest

alsoWorksWithOblongImages 0.053
anotherOblongCase 0.006
keepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.156
keepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.041
smallImageNotEnlargedWhileExpandFalse 0.007
justResizeIfTargetRatioIsEquivalentToSourceRatio 0.02
keepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.024
smallImageIsEnlargedWhileExpandTrue 0.011
whatHappensIfWeOnlySpecifyMaxWidth 0.004

ImagingServletTest

notFoundWhenRequestingNonExistingPath 0.035
mimeTypeIsSetWhenNotCachingGeneratedImages 0.008
notFoundWhenRequestingNonExistingImage 0.009
requestToFactoryToGeneratorToImage 0.044
mimeTypeIsSetWhenCachingGeneratedImages 0.008

SelfTest

nodeParameterProviderHandlesTimestampsProperly 0.264
canGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.165

ImageUtilTest

canHandleImageCreatedByBlankOperationWithBackgroundColor 0.078
canHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.015
performance 0.007
testJpegOddity 0.026
canHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.022
getImageTypeByteBinaryWithAlpha 0.009
loadingPerformance 0.433
getImageTypeIndexedTypeWithoutAlpha 0.005
canHandleTransparentPNGSourceWhenFlatteningForJPEG 0.007
canHandleTransparentGIFSourceWhenFlatteningForJPEG 0.008
huffmanImageDecoding 1.155
canHandleOpaquePNGSourceWhenFlatteningForJPEG 0.023
getOriginalImageType 0.005
getImageTypeByteBinaryWithoutAlpha 0.005
getImageTypeIndexedTypeWithAlpha 0.005
canHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.012
canHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.008

ImageOperationChainTest

blankAndWood 0.323
someTransformations 0.159

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.152
testNodeHasBinaryNode 0.165

ImagingTemplatingFunctionsTest

getImageVariationLinkFromBinaryWhenException 0.018
getImageVariationLinkFromBinaryAndTemplateDefinitionWithoutParameter 0.006
getImageVariationLinkFromBinaryContentMap 0.003
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMap 0.001
getImageVariationLinkFromBinary 0.001
getImageVariationLinkFromBinaryEscapedText 0.003
getImageVariationLinkFromBinaryContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionWhenNull 0.001
getImageVariationLinkFromBinaryAndTemplateDefinition 0.001
getImageVariationLinkFromBinaryWhenNull 0

DefaultImageGeneratorTest

fallbackToJpgIfNoExtensionExists 0.005
extensionIsTakenIntoAccountWhenObtainingOutputFormat 0

CropAndResizeQualityTest

pngNeedsAnEyeToCheck 0.276
jpgNeedsAnEyeToCheck 0.097

ColorConverterTest

canDecodeHslaCssLikeFunction 0.002
canDecodeNames 0
canDecodeNamesCaseInsensitively 0
failsOnBadHexa 0.004
percentage 0
failsOnNull 0
normalizeAngle 0
failsOnBadRgb 0
failsOnBadAlpha 0.001
canDecodeHslCssLikeFunction 0
canDecodeRgbCssLikeFunction 0
canDecodeRgbaCssLikeFunction 0.001
canDecodeHexa 0
failsOnUnknownName 0
failsOnAlphaValueWithAlphaLessFunction 0
canDecode3CharHexa 0

DefaultVariationTest

defaultVariationReturnsLinkToParent 0.744
defaultVariationReturnsLinkToParentWithExtension 0.001
variationReturnsNullWhenBinaryIsNull 0.006
defaultVariationReturnsNullWhenException 0.009

ImagingModuleVersionHandlerTest

cleanInstallAddsPermissionsForImagingBaseRole 1.925
updateTo33RemovesImagingToolsModule 0.579
updateTo32InstallsTemplatingFunctions 0.524
updateFrom31AddsPermissionsForImagingBaseRole 0.502
cleanInstall 0.522
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.445
updateTo32InstallsNewDefaultImageGenerator 0.385
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.57
updateTo33RemoveLegacyTrees 0.324
updateTo33RemovesImagingCropUI 0.375
updateTo32ExcludesImagingFromFlushCache 0.323

BinaryNodeIdentifierParameterProviderFactoryTest

pathInfoSplitting 0.172

Failure Details

[Summary] [Package List] [Test Cases]


shouldStoreNothingWhenUsingNullCachingStrategy
skipped: skipped
concurrencyAndJCRSessions
skipped: skipped