Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.643
info.magnolia.imaging.functions 11 0 0 0 100% 0.035
info.magnolia.imaging.util 51 0 0 0 100% 2.459
info.magnolia.imaging 17 0 0 1 94.118% 1.052
info.magnolia.imaging.operations 2 0 0 0 100% 0.433
info.magnolia.imaging.caching 6 0 0 2 66.667% 0.723
info.magnolia.imaging.operations.cropresize 29 0 0 0 100% 1.468
info.magnolia.imaging.parameters 3 0 0 0 100% 0.693
info.magnolia.imaging.operations.load 12 0 0 0 100% 8.921
info.magnolia.imaging.variation 4 0 0 0 100% 0.622

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

info.magnolia.imaging.functions

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

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% 2.448
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.659
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.387
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.433

info.magnolia.imaging.caching

Class Tests Errors Failures Skipped Success Rate Time
CachingImageStreamerRepositoryTest 5 0 0 2 60% 0.723
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.268
BoundedResizeTest 9 0 0 0 100% 0.365
CropAndResizeQualityTest 2 0 0 0 100% 0.355

info.magnolia.imaging.parameters

Class Tests Errors Failures Skipped Success Rate Time
BinaryJcrNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.263
BinaryNodeParameterProviderFactoryTest 1 0 0 0 100% 0.165
BinaryNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.265

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 10 0 0 0 100% 8.569
FromBinaryNodeTest 2 0 0 0 100% 0.352

info.magnolia.imaging.variation

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

Test Cases

[Summary] [Package List] [Test Cases]

ImagingModuleTest

moduleStopUnRegistersSpiProviders 0.193
moduleStartRegistersSpiProviders 0.169
imagingCacheIsFlushedAfterConfigChange 0.297

AbstractLoaderTest

transparencyOfIndexedImageIsNotLost 0.859
gifToJpgCase4BitImage 0.897
gifToGifCase4BitImage 1.178
bufferedImageFromPngWithAlpha 0.752
backgroundColor 0.784
memoryUse 0.992
bufferedImageFromBmp 0.686
bufferedImageFromJpg 0.999
bufferedImageFromPng 0.704
gifToPngCase4BitImage 0.718

CachingImageStreamerRepositoryTest

makeSureMIMETypeIsCorrectlyPersisted 0.308
shouldStoreNothingWhenUsingNullCachingStrategy 0
skipped
generateAndStoreIsDoneUnderSystemContext 0.188
concurrencyAndJCRSessions 0
skipped
requestForSimilarUncachedImageOnlyGeneratesItOnce 0.227

BinaryJcrNodeIdentifierParameterProviderFactoryTest

pathInfoSplitting 0.263

OutputFormatTest

progressiveFlagIsSetProperlyWhenFalse 0
compressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
qualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
compressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
progressiveFlagIsSetProperlyWhenTrue 0

BinaryNodeParameterProviderFactoryTest

pathInfoSplitting 0.165

CoordsTest

throwsExceptionWhenCalculatingWidthAndHeightWithInvalidCoordinates 0
calculatesWidthAndHeightProperly 0

PathSplitterTest

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

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0
createLinkForNonExistingVariationDefaultsToOriginalImage 0
createLinkForOriginalVariation 0
createLinkForNullVariationDefaultsToOriginalImage 0.001

AutoCropAndResizeTest

noResizeIfWidthAndHeightAreNotSpecified 0.013
resizesProportionallyIfOnlyWidthIsSpecified 0.008
resizesProportionallyIfOnlyHeightIsSpecified 0.009
verticalSourceWithVerticalRatioIsAlsoSwell 0.044
verticalRatiosAlsoWork 0.023
doesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.024
doesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.024
thereWereVerticalBlackBordersToo 0.009
justResizeIfTargetRatioIsEquivalentToSourceRatio 0.025
squareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.148
respectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.034
squareTargetUsesLargestPossibleZoneForHorizontalSource 0.036
resizesUsingBothWidthAndHeightIfSpecified 0.01
verticalSourceIsHandledJustAsWell 0.065
philippSawBlackBorders 0.008

AbstractContentBasedCachingStrategyTest

selfSanity 0

MultiStepResizerTest

jpgNeedsAnEyeToCheck 0.268

BoundedResizeTest

alsoWorksWithOblongImages 0.067
anotherOblongCase 0.007
keepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.174
keepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.045
smallImageNotEnlargedWhileExpandFalse 0.007
justResizeIfTargetRatioIsEquivalentToSourceRatio 0.022
keepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.027
smallImageIsEnlargedWhileExpandTrue 0.012
whatHappensIfWeOnlySpecifyMaxWidth 0.004

SelfTest

nodeParameterProviderHandlesTimestampsProperly 0.202
canGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.185

ImageUtilTest

canHandleImageCreatedByBlankOperationWithBackgroundColor 0.089
canHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.016
performance 0.008
testJpegOddity 0.027
canHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.021
getImageTypeByteBinaryWithAlpha 0.01
loadingPerformance 0.389
getImageTypeIndexedTypeWithoutAlpha 0.005
canHandleTransparentPNGSourceWhenFlatteningForJPEG 0.008
canHandleTransparentGIFSourceWhenFlatteningForJPEG 0.009
huffmanImageDecoding 1.797
canHandleOpaquePNGSourceWhenFlatteningForJPEG 0.028
getOriginalImageType 0.008
getImageTypeByteBinaryWithoutAlpha 0.009
getImageTypeIndexedTypeWithAlpha 0.005
canHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.012
canHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.007

ImageOperationChainTest

blankAndWood 0.283
someTransformations 0.15

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.177
testNodeHasBinaryNode 0.175

ImagingTemplatingFunctionsTest

getImageVariationLinkFromBinaryWhenException 0.021
getImageVariationLinkFromBinaryAndTemplateDefinitionWithoutParameter 0.005
getImageVariationLinkFromBinaryContentMap 0.002
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMap 0.002
getImageVariationLinkFromBinary 0.001
getImageVariationLinkFromBinaryEscapedText 0.002
getImageVariationLinkFromBinaryContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionWhenNull 0.001
getImageVariationLinkFromBinaryAndTemplateDefinition 0.001
getImageVariationLinkFromBinaryWhenNull 0

DefaultImageGeneratorTest

fallbackToJpgIfNoExtensionExists 0.005
extensionIsTakenIntoAccountWhenObtainingOutputFormat 0

CropAndResizeQualityTest

pngNeedsAnEyeToCheck 0.26
jpgNeedsAnEyeToCheck 0.095

ColorConverterTest

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

DefaultVariationTest

defaultVariationReturnsLinkToParent 0.607
defaultVariationReturnsLinkToParentWithExtension 0.001
variationReturnsNullWhenBinaryIsNull 0.006
defaultVariationReturnsNullWhenException 0.008

ImagingModuleVersionHandlerTest

cleanInstallAddsPermissionsForImagingBaseRole 2.048
updateTo33RemovesImagingToolsModule 0.606
updateTo32InstallsTemplatingFunctions 0.564
updateFrom31AddsPermissionsForImagingBaseRole 0.517
cleanInstall 0.518
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.448
updateTo32InstallsNewDefaultImageGenerator 0.403
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.442
updateTo33RemoveLegacyTrees 0.354
updateTo33RemovesImagingCropUI 0.368
updateTo32ExcludesImagingFromFlushCache 0.375

BinaryNodeIdentifierParameterProviderFactoryTest

pathInfoSplitting 0.265

Failure Details

[Summary] [Package List] [Test Cases]


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