Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.629
info.magnolia.imaging.functions 11 0 0 0 100% 0.031
info.magnolia.imaging.util 51 0 0 0 100% 2.5
info.magnolia.imaging 17 0 0 1 94.118% 1.046
info.magnolia.imaging.operations 2 0 0 0 100% 0.443
info.magnolia.imaging.caching 6 0 0 2 66.667% 0.828
info.magnolia.imaging.operations.cropresize 29 0 0 0 100% 1.239
info.magnolia.imaging.parameters 3 0 0 0 100% 0.527
info.magnolia.imaging.operations.load 12 0 0 0 100% 8.996
info.magnolia.imaging.variation 4 0 0 0 100% 0.766

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

info.magnolia.imaging.functions

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

info.magnolia.imaging.util

Class Tests Errors Failures Skipped Success Rate Time
PathSplitterTest 18 0 0 0 100% 0.001
ImageUtilTest 17 0 0 0 100% 2.491
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.65
OutputFormatTest 5 0 0 0 100% 0
DefaultImagingSupportTest 4 0 0 0 100% 0
ImagingServletTest 1 0 0 1 0% 0
SelfTest 2 0 0 0 100% 0.392
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.443

info.magnolia.imaging.caching

Class Tests Errors Failures Skipped Success Rate Time
CachingImageStreamerRepositoryTest 5 0 0 2 60% 0.828
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.344
MultiStepResizerTest 1 0 0 0 100% 0.217
BoundedResizeTest 9 0 0 0 100% 0.326
CropAndResizeQualityTest 2 0 0 0 100% 0.352

info.magnolia.imaging.parameters

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

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 10 0 0 0 100% 8.675
FromBinaryNodeTest 2 0 0 0 100% 0.321

info.magnolia.imaging.variation

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

Test Cases

[Summary] [Package List] [Test Cases]

ImagingModuleTest

moduleStopUnRegistersSpiProviders 0.182
moduleStartRegistersSpiProviders 0.172
imagingCacheIsFlushedAfterConfigChange 0.296

AbstractLoaderTest

transparencyOfIndexedImageIsNotLost 1.178
gifToJpgCase4BitImage 0.91
gifToGifCase4BitImage 0.857
bufferedImageFromPngWithAlpha 0.769
backgroundColor 0.759
memoryUse 1.009
bufferedImageFromBmp 0.709
bufferedImageFromJpg 1.026
bufferedImageFromPng 0.726
gifToPngCase4BitImage 0.732

CachingImageStreamerRepositoryTest

makeSureMIMETypeIsCorrectlyPersisted 0.305
shouldStoreNothingWhenUsingNullCachingStrategy 0
skipped
generateAndStoreIsDoneUnderSystemContext 0.304
concurrencyAndJCRSessions 0
skipped
requestForSimilarUncachedImageOnlyGeneratesItOnce 0.219

BinaryJcrNodeIdentifierParameterProviderFactoryTest

pathInfoSplitting 0.17

OutputFormatTest

progressiveFlagIsSetProperlyWhenFalse 0
compressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
qualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
compressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
progressiveFlagIsSetProperlyWhenTrue 0

BinaryNodeParameterProviderFactoryTest

pathInfoSplitting 0.176

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

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0
createLinkForNonExistingVariationDefaultsToOriginalImage 0
createLinkForOriginalVariation 0
createLinkForNullVariationDefaultsToOriginalImage 0

AutoCropAndResizeTest

noResizeIfWidthAndHeightAreNotSpecified 0.011
resizesProportionallyIfOnlyWidthIsSpecified 0.008
resizesProportionallyIfOnlyHeightIsSpecified 0.008
verticalSourceWithVerticalRatioIsAlsoSwell 0.038
verticalRatiosAlsoWork 0.018
doesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.018
doesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.018
thereWereVerticalBlackBordersToo 0.007
justResizeIfTargetRatioIsEquivalentToSourceRatio 0.021
squareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.076
respectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.019
squareTargetUsesLargestPossibleZoneForHorizontalSource 0.027
resizesUsingBothWidthAndHeightIfSpecified 0.008
verticalSourceIsHandledJustAsWell 0.06
philippSawBlackBorders 0.007

AbstractContentBasedCachingStrategyTest

selfSanity 0

MultiStepResizerTest

jpgNeedsAnEyeToCheck 0.217

BoundedResizeTest

alsoWorksWithOblongImages 0.057
anotherOblongCase 0.008
keepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.156
keepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.038
smallImageNotEnlargedWhileExpandFalse 0.007
justResizeIfTargetRatioIsEquivalentToSourceRatio 0.021
keepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.024
smallImageIsEnlargedWhileExpandTrue 0.011
whatHappensIfWeOnlySpecifyMaxWidth 0.004

SelfTest

nodeParameterProviderHandlesTimestampsProperly 0.199
canGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.193

ImageUtilTest

canHandleImageCreatedByBlankOperationWithBackgroundColor 0.094
canHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.018
performance 0.007
testJpegOddity 0.021
canHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.023
getImageTypeByteBinaryWithAlpha 0.005
loadingPerformance 0.394
getImageTypeIndexedTypeWithoutAlpha 0.005
canHandleTransparentPNGSourceWhenFlatteningForJPEG 0.008
canHandleTransparentGIFSourceWhenFlatteningForJPEG 0.008
huffmanImageDecoding 1.859
canHandleOpaquePNGSourceWhenFlatteningForJPEG 0.022
getOriginalImageType 0.005
getImageTypeByteBinaryWithoutAlpha 0.004
getImageTypeIndexedTypeWithAlpha 0.004
canHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.008
canHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.006

ImageOperationChainTest

blankAndWood 0.29
someTransformations 0.153

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.152
testNodeHasBinaryNode 0.169

ImagingTemplatingFunctionsTest

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

DefaultImageGeneratorTest

fallbackToJpgIfNoExtensionExists 0.004
extensionIsTakenIntoAccountWhenObtainingOutputFormat 0

CropAndResizeQualityTest

pngNeedsAnEyeToCheck 0.261
jpgNeedsAnEyeToCheck 0.091

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
canDecodeHexa 0
failsOnUnknownName 0
failsOnAlphaValueWithAlphaLessFunction 0.001
canDecode3CharHexa 0

DefaultVariationTest

defaultVariationReturnsLinkToParent 0.751
defaultVariationReturnsLinkToParentWithExtension 0.002
variationReturnsNullWhenBinaryIsNull 0.005
defaultVariationReturnsNullWhenException 0.008

ImagingModuleVersionHandlerTest

cleanInstallAddsPermissionsForImagingBaseRole 2.023
updateTo33RemovesImagingToolsModule 0.562
updateTo32InstallsTemplatingFunctions 0.559
updateFrom31AddsPermissionsForImagingBaseRole 0.525
cleanInstall 0.545
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.463
updateTo32InstallsNewDefaultImageGenerator 0.404
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.455
updateTo33RemoveLegacyTrees 0.348
updateTo33RemovesImagingCropUI 0.374
updateTo32ExcludesImagingFromFlushCache 0.371

BinaryNodeIdentifierParameterProviderFactoryTest

pathInfoSplitting 0.181

Failure Details

[Summary] [Package List] [Test Cases]


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