Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
142 0 0 2 98.592% 10.293

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 8 0 0 0 100% 1.782
info.magnolia.imaging.functions 11 0 0 0 100% 0.067
info.magnolia.imaging.util 36 0 0 0 100% 0.513
info.magnolia.imaging 18 0 0 0 100% 0.353
info.magnolia.imaging.operations 2 0 0 0 100% 0.645
info.magnolia.imaging.caching 5 0 0 2 60% 1.963
info.magnolia.imaging.operations.cropresize 30 0 0 0 100% 1.195
info.magnolia.imaging.parameters 16 0 0 0 100% 1.032
info.magnolia.imaging.operations.load 12 0 0 0 100% 2.738
info.magnolia.imaging.variation 4 0 0 0 100% 0.005

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 8 0 0 0 100% 1.782

info.magnolia.imaging.functions

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

info.magnolia.imaging.util

Class Tests Errors Failures Skipped Success Rate Time
ColorConverterTest 3 0 0 0 100% 0.001
ImageUtilTest 15 0 0 0 100% 0.512
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
ImagingModuleTest 2 0 0 0 100% 0.007
ImagingServletTest 3 0 0 0 100% 0.026
OutputFormatTest 5 0 0 0 100% 0
SelfTest 2 0 0 0 100% 0.311

info.magnolia.imaging.operations

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

info.magnolia.imaging.caching

Class Tests Errors Failures Skipped Success Rate Time
AbstractContentBasedCachingStrategyTest 1 0 0 0 100% 0.001
CachingImageStreamerRepositoryTest 4 0 0 2 50% 1.962

info.magnolia.imaging.operations.cropresize

Class Tests Errors Failures Skipped Success Rate Time
AutoCropAndResizeTest 15 0 0 0 100% 0.392
BoundedResizeTest 9 0 0 0 100% 0.28
CoordsTest 2 0 0 0 100% 0
CropAndResizeQualityTest 2 0 0 0 100% 0.266
MultiStepResizerTest 1 0 0 0 100% 0.215
SelectedCropAndResizeTest 1 0 0 0 100% 0.042

info.magnolia.imaging.parameters

Class Tests Errors Failures Skipped Success Rate Time
BinaryNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.168
BinaryNodeParameterProviderFactoryTest 1 0 0 0 100% 0.16
ContentParameterProviderFactoryRepositoryTest 1 0 0 0 100% 0.157
ContentParameterProviderFactoryTest 9 0 0 0 100% 0.025
NodeDataParameterProviderFactoryTest 4 0 0 0 100% 0.522

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 7 0 0 0 100% 1.888
FromBinaryNodeTest 2 0 0 0 100% 0.341
FromContentTest 2 0 0 0 100% 0.319
FromNodeDataTest 1 0 0 0 100% 0.19

info.magnolia.imaging.variation

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentBasedCachingStrategyTest

testSelfSanity 0.001

CachingImageStreamerRepositoryTest

shouldStoreNothingWhenUsingNullCachingStrategy 0
skipped
testGenerateAndStoreIsDoneUnderSystemContext 1.616
testConcurrencyAndJCRSessions 0
skipped
testRequestForSimilarUncachedImageOnlyGeneratesItOnce 0.346

DefaultImageGeneratorTest

fallbackToJpgIfNoExtensionExists 0.007
extensionIsTakenIntoAccountWhenObtainingOutputFormat 0.002

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0
createLinkForNonExistingVariationDefaultsToOriginalImage 0
createLinkForOriginalVariation 0
createLinkForNullVariationDefaultsToOriginalImage 0

ImagingTemplatingFunctionsTest

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

ImagingModuleTest

testModuleStartRegistersSpiProviders 0.005
testModuleStopUnRegistersSpiProviders 0.002

ImagingServletTest

testGetCorrectMimeType 0.021
testRequestToFactoryToGeneratorToImage 0.003
testDoGetWrongExtension 0.002

AutoCropAndResizeTest

testDoesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.075
testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.02
testSquareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.06
testThereWereVerticalBlackBordersToo 0.041
testVerticalRatiosAlsoWork 0.018
testNoResizeIfWidthAndHeightAreNotSpecified 0.009
testSquareTargetUsesLargestPossibleZoneForHorizontalSource 0.021
testResizesUsingBothWidthAndHeightIfSpecified 0.007
testDoesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.017
testResizesProportionallyIfOnlyWidthIsSpecified 0.007
testResizesProportionallyIfOnlyHeightIsSpecified 0.007
testVerticalSourceWithVerticalRatioIsAlsoSwell 0.034
testVerticalSourceIsHandledJustAsWell 0.056
testPhilippSawBlackBorders 0.007
testRespectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.013

BoundedResizeTest

testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.017
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.035
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.157
testSmallImageNotEnlargedWhileExpandFalse 0.015
testAnotherOblongCase 0.008
testSmallImageIsEnlargedWhileExpandTrue 0.014
testWhatHappensIfWeOnlySpecifyMaxWidth 0.004
testAlsoWorksWithOblongImages 0.006
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.024

CoordsTest

testThrowsExceptionWhenCalculatingWidthAndHeightWithInvalidCoordinates 0
testCalculatesWidthAndHeightProperly 0

CropAndResizeQualityTest

testPngNeedsAnEyeToCheck 0.192
testJpgNeedsAnEyeToCheck 0.074

MultiStepResizerTest

testJpgNeedsAnEyeToCheck 0.215

SelectedCropAndResizeTest

testCanDecodeLegacyCropInfoStrings 0.042

ImageOperationChainTest

testBlankAndWood 0.245
testSomeTransformations 0.4

AbstractLoaderTest

testBufferedImageFromPngWithAlpha 0.358
testTransparencyOfIndexedImageIsNotLost 0.241
testBufferedImageFromBmp 0.244
testBufferedImageFromGif 0.273
testBufferedImageFromJpg 0.287
testBufferedImageFromPng 0.271
testBackgroundColor 0.214

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.155
testNodeHasBinaryNode 0.186

FromContentTest

testUnexistingPropertyYieldsAProperException 0.162
testNonBinaryPropertyYieldsAProperException 0.157

FromNodeDataTest

testNonBinaryPropertyYieldsAProperException 0.19

OutputFormatTest

testCompressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
testCompressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenFalse 0
testQualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenTrue 0

BinaryNodeIdentifierParameterProviderFactoryTest

testPathInfoSplitting 0.168

BinaryNodeParameterProviderFactoryTest

testPathInfoSplitting 0.16

ContentParameterProviderFactoryRepositoryTest

testWrapsContentSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.157

ContentParameterProviderFactoryTest

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

NodeDataParameterProviderFactoryTest

testExistingPropertyJustWorks 0.157
testWrapsNodeDataSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.124
testReturnsWrappedNonExistingNodeDataIfPropertyDoesNotExist 0.123
testYieldsAProperExceptionIfGeneratorNameIsOmmitted 0.118

SelfTest

testCanGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.146
testNodeParameterProviderHandlesTimestampsProperly 0.165

ImagingModuleVersionHandlerTest

testCleanInstallAddsPermissionsForImagingBaseRole 0.325
updateTo32InstallsTemplatingFunctions 0.257
cleanInstall 0.217
testUpdateFrom31AddsPermissionsForImagingBaseRole 0.186
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.202
updateTo32InstallsNewDefaultImageGenerator 0.18
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.218
updateTo32ExcludesImagingFromFlushCache 0.197

ColorConverterTest

testCanDecodeHexa 0.001
testFailsOnUnknownName 0
testCanDecodeNames 0

ImageUtilTest

testPerformance 0.002
testCanHandleTransparentPNGSourceWhenFlatteningForJPEG 0.007
testCanHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.009
testJpegOddity 0.017
testCanHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.005
testCanHandleTransparentGIFSourceWhenFlatteningForJPEG 0.005
testDecodingHuffmanImage 0.021
testGetImageTypeIndexedTypeWithoutAlpha 0.01
testGetOriginalImageType 0.003
testCanHandleImageCreatedByBlankOperationWithBackgroundColor 0.006
testGetImageTypeIndexedTypeWithAlpha 0.004
testCanHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.007
testCanHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.019
testLoadingPerformance 0.386
testCanHandleOpaquePNGSourceWhenFlatteningForJPEG 0.011

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.003
defaultVariationReturnsLinkToParentWithExtension 0
variationReturnsNullWhenBinaryIsNull 0
defaultVariationReturnsNullWhenException 0.002

Failure Details

[Summary] [Package List] [Test Cases]


shouldStoreNothingWhenUsingNullCachingStrategy
skipped: skipped
testConcurrencyAndJCRSessions
skipped: skipped