Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
150 0 0 2 98.667% 23.066

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.785
info.magnolia.imaging.functions 11 0 0 0 100% 0.028
info.magnolia.imaging.util 51 0 0 0 100% 0.758
info.magnolia.imaging 21 0 0 0 100% 2.376
info.magnolia.imaging.operations 2 0 0 0 100% 0.446
info.magnolia.imaging.operations.cropresize 29 0 0 0 100% 1.391
info.magnolia.imaging.caching 6 0 0 2 66.667% 0.847
info.magnolia.imaging.parameters 3 0 0 0 100% 0.681
info.magnolia.imaging.operations.load 12 0 0 0 100% 9.727
info.magnolia.imaging.variation 4 0 0 0 100% 0.027

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

info.magnolia.imaging.functions

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

info.magnolia.imaging.util

Class Tests Errors Failures Skipped Success Rate Time
ImageUtilTest 17 0 0 0 100% 0.751
PathSplitterTest 18 0 0 0 100% 0.001
ColorConverterTest 16 0 0 0 100% 0.006

info.magnolia.imaging

Class Tests Errors Failures Skipped Success Rate Time
OutputFormatTest 5 0 0 0 100% 0
DefaultImageGeneratorTest 2 0 0 0 100% 0.008
ImagingServletTest 5 0 0 0 100% 0.682
DefaultImagingSupportTest 4 0 0 0 100% 0.004
SelfTest 2 0 0 0 100% 0.517
ImagingModuleTest 3 0 0 0 100% 1.165

info.magnolia.imaging.operations

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

info.magnolia.imaging.operations.cropresize

Class Tests Errors Failures Skipped Success Rate Time
AutoCropAndResizeTest 15 0 0 0 100% 0.436
MultiStepResizerTest 1 0 0 0 100% 0.279
CoordsTest 2 0 0 0 100% 0
BoundedResizeTest 9 0 0 0 100% 0.294
CropAndResizeQualityTest 2 0 0 0 100% 0.382

info.magnolia.imaging.caching

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

info.magnolia.imaging.parameters

Class Tests Errors Failures Skipped Success Rate Time
BinaryNodeParameterProviderFactoryTest 1 0 0 0 100% 0.25
BinaryNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.228
BinaryJcrNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.203

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 10 0 0 0 100% 9.315
FromBinaryNodeTest 2 0 0 0 100% 0.412

info.magnolia.imaging.variation

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

Test Cases

[Summary] [Package List] [Test Cases]

BinaryNodeParameterProviderFactoryTest

pathInfoSplitting 0.25

ImageOperationChainTest

blankAndWood 0.293
someTransformations 0.153

OutputFormatTest

progressiveFlagIsSetProperlyWhenFalse 0
compressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
qualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
compressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
progressiveFlagIsSetProperlyWhenTrue 0

ImageUtilTest

canHandleImageCreatedByBlankOperationWithBackgroundColor 0.043
canHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.011
performance 0.006
testJpegOddity 0.029
canHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.023
getImageTypeByteBinaryWithAlpha 0.005
loadingPerformance 0.419
getImageTypeIndexedTypeWithoutAlpha 0.004
canHandleTransparentPNGSourceWhenFlatteningForJPEG 0.006
canHandleTransparentGIFSourceWhenFlatteningForJPEG 0.008
huffmanImageDecoding 0.137
canHandleOpaquePNGSourceWhenFlatteningForJPEG 0.025
getOriginalImageType 0.005
getImageTypeByteBinaryWithoutAlpha 0.005
getImageTypeIndexedTypeWithAlpha 0.005
canHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.009
canHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.011

ImagingModuleVersionHandlerTest

cleanInstallAddsPermissionsForImagingBaseRole 1.539
updateTo33RemovesImagingToolsModule 0.722
updateTo32InstallsTemplatingFunctions 0.7
updateFrom31AddsPermissionsForImagingBaseRole 0.58
cleanInstall 0.643
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.513
updateTo32InstallsNewDefaultImageGenerator 0.439
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.496
updateTo33RemoveLegacyTrees 0.367
updateTo33RemovesImagingCropUI 0.367
updateTo32ExcludesImagingFromFlushCache 0.419

DefaultImageGeneratorTest

fallbackToJpgIfNoExtensionExists 0.007
extensionIsTakenIntoAccountWhenObtainingOutputFormat 0.001

AutoCropAndResizeTest

noResizeIfWidthAndHeightAreNotSpecified 0.03
resizesProportionallyIfOnlyWidthIsSpecified 0.008
resizesProportionallyIfOnlyHeightIsSpecified 0.011
verticalSourceWithVerticalRatioIsAlsoSwell 0.051
verticalRatiosAlsoWork 0.028
doesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.031
doesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.027
thereWereVerticalBlackBordersToo 0.01
justResizeIfTargetRatioIsEquivalentToSourceRatio 0.023
squareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.088
respectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.019
squareTargetUsesLargestPossibleZoneForHorizontalSource 0.028
resizesUsingBothWidthAndHeightIfSpecified 0.01
verticalSourceIsHandledJustAsWell 0.066
philippSawBlackBorders 0.006

ImagingServletTest

notFoundWhenRequestingNonExistingPath 0.558
mimeTypeIsSetWhenNotCachingGeneratedImages 0.082
notFoundWhenRequestingNonExistingImage 0.005
requestToFactoryToGeneratorToImage 0.029
mimeTypeIsSetWhenCachingGeneratedImages 0.008

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0.004
createLinkForNonExistingVariationDefaultsToOriginalImage 0
createLinkForOriginalVariation 0
createLinkForNullVariationDefaultsToOriginalImage 0

BinaryNodeIdentifierParameterProviderFactoryTest

pathInfoSplitting 0.228

MultiStepResizerTest

jpgNeedsAnEyeToCheck 0.279

CachingImageStreamerRepositoryTest

makeSureMIMETypeIsCorrectlyPersisted 0.334
shouldStoreNothingWhenUsingNullCachingStrategy 0
skipped
generateAndStoreIsDoneUnderSystemContext 0.238
concurrencyAndJCRSessions 0
skipped
requestForSimilarUncachedImageOnlyGeneratesItOnce 0.275

AbstractLoaderTest

transparencyOfIndexedImageIsNotLost 1.074
gifToJpgCase4BitImage 0.759
gifToGifCase4BitImage 0.796
bufferedImageFromPngWithAlpha 0.781
backgroundColor 1.05
memoryUse 0.994
bufferedImageFromBmp 0.872
bufferedImageFromJpg 1.176
bufferedImageFromPng 0.982
gifToPngCase4BitImage 0.831

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.21
testNodeHasBinaryNode 0.202

ImagingTemplatingFunctionsTest

getImageVariationLinkFromBinaryWhenException 0.015
getImageVariationLinkFromBinaryAndTemplateDefinitionWithoutParameter 0.005
getImageVariationLinkFromBinaryContentMap 0.003
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMap 0.001
getImageVariationLinkFromBinary 0
getImageVariationLinkFromBinaryEscapedText 0.003
getImageVariationLinkFromBinaryContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionWhenNull 0.001
getImageVariationLinkFromBinaryAndTemplateDefinition 0
getImageVariationLinkFromBinaryWhenNull 0

PathSplitterTest

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

CoordsTest

throwsExceptionWhenCalculatingWidthAndHeightWithInvalidCoordinates 0
calculatesWidthAndHeightProperly 0

SelfTest

nodeParameterProviderHandlesTimestampsProperly 0.286
canGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.231

ImagingModuleTest

moduleStopUnRegistersSpiProviders 0.378
moduleStartRegistersSpiProviders 0.335
imagingCacheIsFlushedAfterConfigChange 0.452

BoundedResizeTest

alsoWorksWithOblongImages 0.006
anotherOblongCase 0.005
keepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.181
keepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.039
smallImageNotEnlargedWhileExpandFalse 0.006
justResizeIfTargetRatioIsEquivalentToSourceRatio 0.02
keepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.023
smallImageIsEnlargedWhileExpandTrue 0.01
whatHappensIfWeOnlySpecifyMaxWidth 0.004

CropAndResizeQualityTest

pngNeedsAnEyeToCheck 0.259
jpgNeedsAnEyeToCheck 0.123

ColorConverterTest

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

AbstractContentBasedCachingStrategyTest

selfSanity 0

BinaryJcrNodeIdentifierParameterProviderFactoryTest

pathInfoSplitting 0.203

DefaultVariationTest

defaultVariationReturnsLinkToParent 0.023
defaultVariationReturnsLinkToParentWithExtension 0.001
variationReturnsNullWhenBinaryIsNull 0
defaultVariationReturnsNullWhenException 0.003

Failure Details

[Summary] [Package List] [Test Cases]


shouldStoreNothingWhenUsingNullCachingStrategy
skipped: skipped
concurrencyAndJCRSessions
skipped: skipped