Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
164 0 0 2 98.78% 14.483

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% 3.787
info.magnolia.imaging.functions 11 0 0 0 100% 0.056
info.magnolia.imaging.util 51 0 0 0 100% 0.551
info.magnolia.imaging 19 0 0 0 100% 1.157
info.magnolia.imaging.operations 2 0 0 0 100% 1.008
info.magnolia.imaging.caching 6 0 0 2 66.667% 2.274
info.magnolia.imaging.operations.cropresize 30 0 0 0 100% 1.237
info.magnolia.imaging.parameters 16 0 0 0 100% 1.11
info.magnolia.imaging.operations.load 14 0 0 0 100% 3.262
info.magnolia.imaging.variation 4 0 0 0 100% 0.041

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% 3.787

info.magnolia.imaging.functions

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

info.magnolia.imaging.util

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

info.magnolia.imaging

Class Tests Errors Failures Skipped Success Rate Time
DefaultImageGeneratorTest 2 0 0 0 100% 0.009
DefaultImagingSupportTest 4 0 0 0 100% 0.001
ImagingModuleTest 3 0 0 0 100% 0.723
ImagingServletTest 3 0 0 0 100% 0.057
OutputFormatTest 5 0 0 0 100% 0
SelfTest 2 0 0 0 100% 0.367

info.magnolia.imaging.operations

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

info.magnolia.imaging.caching

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

info.magnolia.imaging.operations.cropresize

Class Tests Errors Failures Skipped Success Rate Time
AutoCropAndResizeTest 15 0 0 0 100% 0.409
BoundedResizeTest 9 0 0 0 100% 0.326
CoordsTest 2 0 0 0 100% 0
CropAndResizeQualityTest 2 0 0 0 100% 0.261
MultiStepResizerTest 1 0 0 0 100% 0.206
SelectedCropAndResizeTest 1 0 0 0 100% 0.035

info.magnolia.imaging.parameters

Class Tests Errors Failures Skipped Success Rate Time
BinaryNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.16
BinaryNodeParameterProviderFactoryTest 1 0 0 0 100% 0.145
ContentParameterProviderFactoryRepositoryTest 1 0 0 0 100% 0.207
ContentParameterProviderFactoryTest 9 0 0 0 100% 0.02
NodeDataParameterProviderFactoryTest 4 0 0 0 100% 0.578

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 9 0 0 0 100% 2.382
FromBinaryNodeTest 2 0 0 0 100% 0.466
FromContentTest 2 0 0 0 100% 0.252
FromNodeDataTest 1 0 0 0 100% 0.162

info.magnolia.imaging.variation

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentBasedCachingStrategyTest

testSelfSanity 0.003

CachingImageStreamerRepositoryTest

makeSureMIMETypeIsCorrectlyPersisted 1.676
shouldStoreNothingWhenUsingNullCachingStrategy 0
skipped
testGenerateAndStoreIsDoneUnderSystemContext 0.326
testConcurrencyAndJCRSessions 0
skipped
testRequestForSimilarUncachedImageOnlyGeneratesItOnce 0.269

DefaultImageGeneratorTest

fallbackToJpgIfNoExtensionExists 0.007
extensionIsTakenIntoAccountWhenObtainingOutputFormat 0.002

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0
createLinkForNonExistingVariationDefaultsToOriginalImage 0
createLinkForOriginalVariation 0.001
createLinkForNullVariationDefaultsToOriginalImage 0

ImagingTemplatingFunctionsTest

getImageVariationLinkFromBinaryWhenException 0.022
getImageVariationLinkFromBinaryAndTemplateDefinitionWithoutParameter 0.03
getImageVariationLinkFromBinaryContentMap 0
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMap 0
getImageVariationLinkFromBinary 0.001
getImageVariationLinkFromBinaryEscapedText 0.002
getImageVariationLinkFromBinaryContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinition 0.001
getImageVariationLinkFromBinaryWhenNull 0

ImagingModuleTest

moduleStopUnRegistersSpiProviders 0.24
moduleStartRegistersSpiProviders 0.203
imagingCacheIsFlushedAfterConfigChange 0.28

ImagingServletTest

mimeTypeIsSetWhenNotCachingGeneratedImages 0.04
testRequestToFactoryToGeneratorToImage 0.008
mimeTypeIsSetWhenCachingGeneratedImages 0.009

AutoCropAndResizeTest

testDoesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.071
testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.02
testSquareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.07
testThereWereVerticalBlackBordersToo 0.04
testVerticalRatiosAlsoWork 0.018
testNoResizeIfWidthAndHeightAreNotSpecified 0.018
testSquareTargetUsesLargestPossibleZoneForHorizontalSource 0.024
testResizesUsingBothWidthAndHeightIfSpecified 0.006
testDoesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.018
testResizesProportionallyIfOnlyWidthIsSpecified 0.008
testResizesProportionallyIfOnlyHeightIsSpecified 0.007
testVerticalSourceWithVerticalRatioIsAlsoSwell 0.076
testVerticalSourceIsHandledJustAsWell 0.011
testPhilippSawBlackBorders 0.009
testRespectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.013

BoundedResizeTest

testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.019
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.033
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.16
testSmallImageNotEnlargedWhileExpandFalse 0.013
testAnotherOblongCase 0.008
testSmallImageIsEnlargedWhileExpandTrue 0.021
testWhatHappensIfWeOnlySpecifyMaxWidth 0.004
testAlsoWorksWithOblongImages 0.043
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.025

CoordsTest

testThrowsExceptionWhenCalculatingWidthAndHeightWithInvalidCoordinates 0
testCalculatesWidthAndHeightProperly 0

CropAndResizeQualityTest

testPngNeedsAnEyeToCheck 0.185
testJpgNeedsAnEyeToCheck 0.076

MultiStepResizerTest

testJpgNeedsAnEyeToCheck 0.206

SelectedCropAndResizeTest

testCanDecodeLegacyCropInfoStrings 0.035

ImageOperationChainTest

testBlankAndWood 0.244
testSomeTransformations 0.764

AbstractLoaderTest

testBufferedImageFromPngWithAlpha 0.257
testTransparencyOfIndexedImageIsNotLost 0.234
gifToJpgCase4BitImage 0.233
gifToGifCase4BitImage 0.24
testBufferedImageFromBmp 0.212
testBufferedImageFromJpg 0.323
testBufferedImageFromPng 0.288
testBackgroundColor 0.316
gifToPngCase4BitImage 0.279

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.271
testNodeHasBinaryNode 0.195

FromContentTest

testUnexistingPropertyYieldsAProperException 0.136
testNonBinaryPropertyYieldsAProperException 0.116

FromNodeDataTest

testNonBinaryPropertyYieldsAProperException 0.162

OutputFormatTest

testCompressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
testCompressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenFalse 0
testQualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenTrue 0

BinaryNodeIdentifierParameterProviderFactoryTest

testPathInfoSplitting 0.16

BinaryNodeParameterProviderFactoryTest

testPathInfoSplitting 0.145

ContentParameterProviderFactoryRepositoryTest

testWrapsContentSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.207

ContentParameterProviderFactoryTest

testExtensionIsIgnoredAlsoForTopLevelNodeIfTrimExtensionIsTrue 0.017
testExtensionIsNotIgnoredAlsoForTopLevelNodeIfTrimExtensionIsFalse 0
testFailsIfNoPathInfo 0.001
testDeepNodeIsRetrieved 0
testExtensionIsNotIgnoredIfTrimExtensionIsFalse 0
testExtensionIsIgnoredIfTrimExtensionIsTrue 0.001
testFailsIfWorkspaceNorNodePath 0
testCanGetTheRootNodeIfNeededButWhoWantsThis 0.001
testNodeAtFirstLevelIsRetrievedToo 0

NodeDataParameterProviderFactoryTest

testExistingPropertyJustWorks 0.124
testWrapsNodeDataSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.115
testReturnsWrappedNonExistingNodeDataIfPropertyDoesNotExist 0.145
testYieldsAProperExceptionIfGeneratorNameIsOmmitted 0.194

SelfTest

testCanGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.177
testNodeParameterProviderHandlesTimestampsProperly 0.19

ImagingModuleVersionHandlerTest

updateTo33RemovesImagingToolsModule 0.471
testCleanInstallAddsPermissionsForImagingBaseRole 0.478
updateTo32InstallsTemplatingFunctions 0.306
cleanInstall 0.354
testUpdateFrom31AddsPermissionsForImagingBaseRole 0.317
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.374
updateTo32InstallsNewDefaultImageGenerator 0.346
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.333
updateTo33RemoveLegacyTrees 0.26
updateTo33RemovesImagingCropUI 0.253
updateTo32ExcludesImagingFromFlushCache 0.295

ColorConverterTest

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

ImageUtilTest

testPerformance 0.012
canHandleImageCreatedByBlankOperationWithBackgroundColor 0.007
canHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.006
testJpegOddity 0.017
canHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.014
getImageTypeByteBinaryWithAlpha 0.005
getImageTypeIndexedTypeWithoutAlpha 0.004
testHuffmanImageDecoding 0.021
canHandleTransparentPNGSourceWhenFlatteningForJPEG 0.007
canHandleTransparentGIFSourceWhenFlatteningForJPEG 0.006
testLoadingPerformance 0.389
canHandleOpaquePNGSourceWhenFlatteningForJPEG 0.018
getOriginalImageType 0.004
getImageTypeByteBinaryWithoutAlpha 0.004
getImageTypeIndexedTypeWithAlpha 0.004
canHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.023
canHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.004

PathSplitterTest

testExtensionCanBeKeptAndIsNotCountingAsAnElement 0
testNullsAreHandledGracefullyCauseWeAreThatNice 0
testDotsInPathNotAtTheEndAreNotTrimmed 0
testDotsInPathOnlyOneToSplitTrimExtension 0
testDotsInNames 0
testLeadingAndTralingslahesAreIgnored 0
testEmptyStringYieldsNoResults 0
testTrimExtensionProperly 0
testRemainingCanBeCalledEvenIfWeAlreadyReachedTheLastElement 0
testEmptyElementsBeforeTrailingSlashWorkToo 0
testEmptyElementsMatter 0
testEmptyElementsAfterLeadingSlashWorkToo 0
testOnlyOneToSplit 0
testNextAndSkipCallsDontOverlapEachOther 0
testDocumentedExample 0
testRemainingCanBeCalledFromTheStartEvenIfThisSeemsQuiteUseless 0
testDotsInPathOnlyOneToSplit 0
testExtensionIsTrimmedByDefault 0

DefaultVariationTest

defaultVariationReturnsLinkToParent 0.004
defaultVariationReturnsLinkToParentWithExtension 0.001
variationReturnsNullWhenBinaryIsNull 0
defaultVariationReturnsNullWhenException 0.036

Failure Details

[Summary] [Package List] [Test Cases]


shouldStoreNothingWhenUsingNullCachingStrategy
skipped: skipped
testConcurrencyAndJCRSessions
skipped: skipped