Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
163 0 0 2 98.773% 27.753

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.538
info.magnolia.imaging.functions 11 0 0 0 100% 0.102
info.magnolia.imaging.util 51 0 0 0 100% 1.195
info.magnolia.imaging 18 0 0 0 100% 0.725
info.magnolia.imaging.operations 2 0 0 0 100% 1.838
info.magnolia.imaging.caching 6 0 0 2 66.667% 3.977
info.magnolia.imaging.operations.cropresize 30 0 0 0 100% 3.724
info.magnolia.imaging.parameters 16 0 0 0 100% 2.68
info.magnolia.imaging.operations.load 14 0 0 0 100% 6.959
info.magnolia.imaging.variation 4 0 0 0 100% 0.015

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

info.magnolia.imaging.functions

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

info.magnolia.imaging.util

Class Tests Errors Failures Skipped Success Rate Time
ColorConverterTest 16 0 0 0 100% 0.023
ImageUtilTest 17 0 0 0 100% 1.162
PathSplitterTest 18 0 0 0 100% 0.01

info.magnolia.imaging

Class Tests Errors Failures Skipped Success Rate Time
DefaultImageGeneratorTest 2 0 0 0 100% 0.025
DefaultImagingSupportTest 4 0 0 0 100% 0.002
ImagingModuleTest 2 0 0 0 100% 0.011
ImagingServletTest 3 0 0 0 100% 0.106
OutputFormatTest 5 0 0 0 100% 0
SelfTest 2 0 0 0 100% 0.581

info.magnolia.imaging.operations

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

info.magnolia.imaging.caching

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

info.magnolia.imaging.operations.cropresize

Class Tests Errors Failures Skipped Success Rate Time
AutoCropAndResizeTest 15 0 0 0 100% 0.936
BoundedResizeTest 9 0 0 0 100% 0.958
CoordsTest 2 0 0 0 100% 0
CropAndResizeQualityTest 2 0 0 0 100% 1.332
MultiStepResizerTest 1 0 0 0 100% 0.411
SelectedCropAndResizeTest 1 0 0 0 100% 0.087

info.magnolia.imaging.parameters

Class Tests Errors Failures Skipped Success Rate Time
BinaryNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.276
BinaryNodeParameterProviderFactoryTest 1 0 0 0 100% 0.297
ContentParameterProviderFactoryRepositoryTest 1 0 0 0 100% 0.368
ContentParameterProviderFactoryTest 9 0 0 0 100% 0.052
NodeDataParameterProviderFactoryTest 4 0 0 0 100% 1.687

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 9 0 0 0 100% 4.862
FromBinaryNodeTest 2 0 0 0 100% 1.041
FromContentTest 2 0 0 0 100% 0.742
FromNodeDataTest 1 0 0 0 100% 0.314

info.magnolia.imaging.variation

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentBasedCachingStrategyTest

testSelfSanity 0.001

CachingImageStreamerRepositoryTest

makeSureMIMETypeIsCorrectlyPersisted 2.646
shouldStoreNothingWhenUsingNullCachingStrategy 0
skipped
testGenerateAndStoreIsDoneUnderSystemContext 0.685
testConcurrencyAndJCRSessions 0
skipped
testRequestForSimilarUncachedImageOnlyGeneratesItOnce 0.645

DefaultImageGeneratorTest

fallbackToJpgIfNoExtensionExists 0.02
extensionIsTakenIntoAccountWhenObtainingOutputFormat 0.005

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0.001
createLinkForNonExistingVariationDefaultsToOriginalImage 0.001
createLinkForOriginalVariation 0
createLinkForNullVariationDefaultsToOriginalImage 0

ImagingTemplatingFunctionsTest

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

ImagingModuleTest

testModuleStartRegistersSpiProviders 0.008
testModuleStopUnRegistersSpiProviders 0.003

ImagingServletTest

mimeTypeIsSetWhenNotCachingGeneratedImages 0.067
testRequestToFactoryToGeneratorToImage 0.021
mimeTypeIsSetWhenCachingGeneratedImages 0.018

AutoCropAndResizeTest

testDoesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.094
testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.047
testSquareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.135
testThereWereVerticalBlackBordersToo 0.056
testVerticalRatiosAlsoWork 0.029
testNoResizeIfWidthAndHeightAreNotSpecified 0.018
testSquareTargetUsesLargestPossibleZoneForHorizontalSource 0.056
testResizesUsingBothWidthAndHeightIfSpecified 0.014
testDoesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.032
testResizesProportionallyIfOnlyWidthIsSpecified 0.012
testResizesProportionallyIfOnlyHeightIsSpecified 0.012
testVerticalSourceWithVerticalRatioIsAlsoSwell 0.085
testVerticalSourceIsHandledJustAsWell 0.203
testPhilippSawBlackBorders 0.031
testRespectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.112

BoundedResizeTest

testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.057
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.094
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.545
testSmallImageNotEnlargedWhileExpandFalse 0.069
testAnotherOblongCase 0.025
testSmallImageIsEnlargedWhileExpandTrue 0.031
testWhatHappensIfWeOnlySpecifyMaxWidth 0.013
testAlsoWorksWithOblongImages 0.032
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.092

CoordsTest

testThrowsExceptionWhenCalculatingWidthAndHeightWithInvalidCoordinates 0
testCalculatesWidthAndHeightProperly 0

CropAndResizeQualityTest

testPngNeedsAnEyeToCheck 1.116
testJpgNeedsAnEyeToCheck 0.216

MultiStepResizerTest

testJpgNeedsAnEyeToCheck 0.411

SelectedCropAndResizeTest

testCanDecodeLegacyCropInfoStrings 0.087

ImageOperationChainTest

testBlankAndWood 0.463
testSomeTransformations 1.375

AbstractLoaderTest

testBufferedImageFromPngWithAlpha 1.36
testTransparencyOfIndexedImageIsNotLost 0.565
gifToJpgCase4BitImage 0.495
gifToGifCase4BitImage 0.456
testBufferedImageFromBmp 0.359
testBufferedImageFromJpg 0.43
testBufferedImageFromPng 0.447
testBackgroundColor 0.339
gifToPngCase4BitImage 0.411

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.716
testNodeHasBinaryNode 0.325

FromContentTest

testUnexistingPropertyYieldsAProperException 0.42
testNonBinaryPropertyYieldsAProperException 0.322

FromNodeDataTest

testNonBinaryPropertyYieldsAProperException 0.314

OutputFormatTest

testCompressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
testCompressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenFalse 0
testQualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenTrue 0

BinaryNodeIdentifierParameterProviderFactoryTest

testPathInfoSplitting 0.276

BinaryNodeParameterProviderFactoryTest

testPathInfoSplitting 0.297

ContentParameterProviderFactoryRepositoryTest

testWrapsContentSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.368

ContentParameterProviderFactoryTest

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

NodeDataParameterProviderFactoryTest

testExistingPropertyJustWorks 0.438
testWrapsNodeDataSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.354
testReturnsWrappedNonExistingNodeDataIfPropertyDoesNotExist 0.402
testYieldsAProperExceptionIfGeneratorNameIsOmmitted 0.493

SelfTest

testCanGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.286
testNodeParameterProviderHandlesTimestampsProperly 0.295

ImagingModuleVersionHandlerTest

updateTo33RemovesImagingToolsModule 0.711
testCleanInstallAddsPermissionsForImagingBaseRole 0.675
updateTo32InstallsTemplatingFunctions 0.745
cleanInstall 0.627
testUpdateFrom31AddsPermissionsForImagingBaseRole 0.522
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.397
updateTo32InstallsNewDefaultImageGenerator 0.453
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.566
updateTo33RemoveLegacyTrees 0.449
updateTo33RemovesImagingCropUI 0.581
updateTo32ExcludesImagingFromFlushCache 0.812

ColorConverterTest

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

ImageUtilTest

testPerformance 0.024
canHandleImageCreatedByBlankOperationWithBackgroundColor 0.02
canHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.076
testJpegOddity 0.06
canHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.06
getImageTypeByteBinaryWithAlpha 0.01
getImageTypeIndexedTypeWithoutAlpha 0.009
testHuffmanImageDecoding 0.107
canHandleTransparentPNGSourceWhenFlatteningForJPEG 0.023
canHandleTransparentGIFSourceWhenFlatteningForJPEG 0.013
testLoadingPerformance 0.695
canHandleOpaquePNGSourceWhenFlatteningForJPEG 0.021
getOriginalImageType 0.006
getImageTypeByteBinaryWithoutAlpha 0.006
getImageTypeIndexedTypeWithAlpha 0.007
canHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.012
canHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.013

PathSplitterTest

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

DefaultVariationTest

defaultVariationReturnsLinkToParent 0.012
defaultVariationReturnsLinkToParentWithExtension 0.001
variationReturnsNullWhenBinaryIsNull 0
defaultVariationReturnsNullWhenException 0.002

Failure Details

[Summary] [Package List] [Test Cases]


shouldStoreNothingWhenUsingNullCachingStrategy
skipped: skipped
testConcurrencyAndJCRSessions
skipped: skipped