Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
146 0 0 3 97.945% 22.499

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.208
info.magnolia.imaging.functions 11 0 0 0 100% 0.042
info.magnolia.imaging.util 51 0 0 0 100% 2.459
info.magnolia.imaging 17 0 0 1 94.118% 1.206
info.magnolia.imaging.operations 2 0 0 0 100% 0.438
info.magnolia.imaging.caching 6 0 0 2 66.667% 0.677
info.magnolia.imaging.operations.cropresize 29 0 0 0 100% 1.246
info.magnolia.imaging.parameters 3 0 0 0 100% 0.628
info.magnolia.imaging.operations.load 12 0 0 0 100% 8.954
info.magnolia.imaging.variation 4 0 0 0 100% 0.641

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.208

info.magnolia.imaging.functions

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

info.magnolia.imaging.util

Class Tests Errors Failures Skipped Success Rate Time
PathSplitterTest 18 0 0 0 100% 0
ImageUtilTest 17 0 0 0 100% 2.45
ColorConverterTest 16 0 0 0 100% 0.009

info.magnolia.imaging

Class Tests Errors Failures Skipped Success Rate Time
ImagingModuleTest 3 0 0 0 100% 0.796
OutputFormatTest 5 0 0 0 100% 0
DefaultImagingSupportTest 4 0 0 0 100% 0.001
ImagingServletTest 1 0 0 1 0% 0
SelfTest 2 0 0 0 100% 0.405
DefaultImageGeneratorTest 2 0 0 0 100% 0.004

info.magnolia.imaging.operations

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

info.magnolia.imaging.caching

Class Tests Errors Failures Skipped Success Rate Time
CachingImageStreamerRepositoryTest 5 0 0 2 60% 0.677
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.341
MultiStepResizerTest 1 0 0 0 100% 0.224
BoundedResizeTest 9 0 0 0 100% 0.337
CropAndResizeQualityTest 2 0 0 0 100% 0.344

info.magnolia.imaging.parameters

Class Tests Errors Failures Skipped Success Rate Time
BinaryJcrNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.171
BinaryNodeParameterProviderFactoryTest 1 0 0 0 100% 0.168
BinaryNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.289

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 10 0 0 0 100% 8.621
FromBinaryNodeTest 2 0 0 0 100% 0.333

info.magnolia.imaging.variation

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

Test Cases

[Summary] [Package List] [Test Cases]

ImagingModuleTest

moduleStopUnRegistersSpiProviders 0.3
moduleStartRegistersSpiProviders 0.194
imagingCacheIsFlushedAfterConfigChange 0.302

AbstractLoaderTest

transparencyOfIndexedImageIsNotLost 0.771
gifToJpgCase4BitImage 0.766
gifToGifCase4BitImage 0.955
bufferedImageFromPngWithAlpha 0.726
backgroundColor 1.22
memoryUse 1.019
bufferedImageFromBmp 0.668
bufferedImageFromJpg 0.804
bufferedImageFromPng 0.936
gifToPngCase4BitImage 0.756

CachingImageStreamerRepositoryTest

makeSureMIMETypeIsCorrectlyPersisted 0.275
shouldStoreNothingWhenUsingNullCachingStrategy 0
skipped
generateAndStoreIsDoneUnderSystemContext 0.186
concurrencyAndJCRSessions 0
skipped
requestForSimilarUncachedImageOnlyGeneratesItOnce 0.216

BinaryJcrNodeIdentifierParameterProviderFactoryTest

pathInfoSplitting 0.171

OutputFormatTest

progressiveFlagIsSetProperlyWhenFalse 0
compressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
qualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
compressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
progressiveFlagIsSetProperlyWhenTrue 0

BinaryNodeParameterProviderFactoryTest

pathInfoSplitting 0.168

CoordsTest

throwsExceptionWhenCalculatingWidthAndHeightWithInvalidCoordinates 0
calculatesWidthAndHeightProperly 0

PathSplitterTest

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

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0
createLinkForNonExistingVariationDefaultsToOriginalImage 0
createLinkForOriginalVariation 0.001
createLinkForNullVariationDefaultsToOriginalImage 0

AutoCropAndResizeTest

noResizeIfWidthAndHeightAreNotSpecified 0.012
resizesProportionallyIfOnlyWidthIsSpecified 0.01
resizesProportionallyIfOnlyHeightIsSpecified 0.009
verticalSourceWithVerticalRatioIsAlsoSwell 0.047
verticalRatiosAlsoWork 0.023
doesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.021
doesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.019
thereWereVerticalBlackBordersToo 0.007
justResizeIfTargetRatioIsEquivalentToSourceRatio 0.018
squareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.07
respectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.016
squareTargetUsesLargestPossibleZoneForHorizontalSource 0.024
resizesUsingBothWidthAndHeightIfSpecified 0.007
verticalSourceIsHandledJustAsWell 0.052
philippSawBlackBorders 0.006

AbstractContentBasedCachingStrategyTest

selfSanity 0

MultiStepResizerTest

jpgNeedsAnEyeToCheck 0.224

BoundedResizeTest

alsoWorksWithOblongImages 0.061
anotherOblongCase 0.008
keepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.161
keepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.039
smallImageNotEnlargedWhileExpandFalse 0.007
justResizeIfTargetRatioIsEquivalentToSourceRatio 0.02
keepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.024
smallImageIsEnlargedWhileExpandTrue 0.013
whatHappensIfWeOnlySpecifyMaxWidth 0.004

SelfTest

nodeParameterProviderHandlesTimestampsProperly 0.221
canGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.184

ImageUtilTest

canHandleImageCreatedByBlankOperationWithBackgroundColor 0.082
canHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.016
performance 0.008
testJpegOddity 0.027
canHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.018
getImageTypeByteBinaryWithAlpha 0.005
loadingPerformance 0.409
getImageTypeIndexedTypeWithoutAlpha 0.005
canHandleTransparentPNGSourceWhenFlatteningForJPEG 0.008
canHandleTransparentGIFSourceWhenFlatteningForJPEG 0.009
huffmanImageDecoding 1.804
canHandleOpaquePNGSourceWhenFlatteningForJPEG 0.026
getOriginalImageType 0.005
getImageTypeByteBinaryWithoutAlpha 0.006
getImageTypeIndexedTypeWithAlpha 0.006
canHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.009
canHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.007

ImageOperationChainTest

blankAndWood 0.277
someTransformations 0.161

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.174
testNodeHasBinaryNode 0.159

ImagingTemplatingFunctionsTest

getImageVariationLinkFromBinaryWhenException 0.019
getImageVariationLinkFromBinaryAndTemplateDefinitionWithoutParameter 0.01
getImageVariationLinkFromBinaryContentMap 0.004
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMap 0.001
getImageVariationLinkFromBinary 0.001
getImageVariationLinkFromBinaryEscapedText 0.003
getImageVariationLinkFromBinaryContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionWhenNull 0.002
getImageVariationLinkFromBinaryAndTemplateDefinition 0.001
getImageVariationLinkFromBinaryWhenNull 0.001

DefaultImageGeneratorTest

fallbackToJpgIfNoExtensionExists 0.004
extensionIsTakenIntoAccountWhenObtainingOutputFormat 0

CropAndResizeQualityTest

pngNeedsAnEyeToCheck 0.256
jpgNeedsAnEyeToCheck 0.088

ColorConverterTest

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

DefaultVariationTest

defaultVariationReturnsLinkToParent 0.624
defaultVariationReturnsLinkToParentWithExtension 0.001
variationReturnsNullWhenBinaryIsNull 0.006
defaultVariationReturnsNullWhenException 0.01

ImagingModuleVersionHandlerTest

cleanInstallAddsPermissionsForImagingBaseRole 1.865
updateTo33RemovesImagingToolsModule 0.566
updateTo32InstallsTemplatingFunctions 0.464
updateFrom31AddsPermissionsForImagingBaseRole 0.548
cleanInstall 0.524
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.432
updateTo32InstallsNewDefaultImageGenerator 0.384
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.437
updateTo33RemoveLegacyTrees 0.314
updateTo33RemovesImagingCropUI 0.318
updateTo32ExcludesImagingFromFlushCache 0.356

BinaryNodeIdentifierParameterProviderFactoryTest

pathInfoSplitting 0.289

Failure Details

[Summary] [Package List] [Test Cases]


shouldStoreNothingWhenUsingNullCachingStrategy
skipped: skipped
concurrencyAndJCRSessions
skipped: skipped
info.magnolia.imaging.ImagingServletTest
skipped: skipped