Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
147 0 0 2 98.639% 12.869

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% 2.086
info.magnolia.imaging.functions 11 0 0 0 100% 0.077
info.magnolia.imaging.util 38 0 0 0 100% 0.775
info.magnolia.imaging 18 0 0 0 100% 0.387
info.magnolia.imaging.operations 2 0 0 0 100% 1.006
info.magnolia.imaging.caching 6 0 0 2 66.667% 2.577
info.magnolia.imaging.operations.cropresize 30 0 0 0 100% 1.254
info.magnolia.imaging.parameters 16 0 0 0 100% 1.038
info.magnolia.imaging.operations.load 14 0 0 0 100% 3.663
info.magnolia.imaging.variation 4 0 0 0 100% 0.006

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

info.magnolia.imaging.functions

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

info.magnolia.imaging.util

Class Tests Errors Failures Skipped Success Rate Time
ColorConverterTest 3 0 0 0 100% 0
ImageUtilTest 17 0 0 0 100% 0.774
PathSplitterTest 18 0 0 0 100% 0.001

info.magnolia.imaging

Class Tests Errors Failures Skipped Success Rate Time
DefaultImageGeneratorTest 2 0 0 0 100% 0.01
DefaultImagingSupportTest 4 0 0 0 100% 0.001
ImagingModuleTest 2 0 0 0 100% 0.005
ImagingServletTest 3 0 0 0 100% 0.014
OutputFormatTest 5 0 0 0 100% 0
SelfTest 2 0 0 0 100% 0.357

info.magnolia.imaging.operations

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

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

info.magnolia.imaging.operations.cropresize

Class Tests Errors Failures Skipped Success Rate Time
AutoCropAndResizeTest 15 0 0 0 100% 0.446
BoundedResizeTest 9 0 0 0 100% 0.267
CoordsTest 2 0 0 0 100% 0
CropAndResizeQualityTest 2 0 0 0 100% 0.3
MultiStepResizerTest 1 0 0 0 100% 0.204
SelectedCropAndResizeTest 1 0 0 0 100% 0.037

info.magnolia.imaging.parameters

Class Tests Errors Failures Skipped Success Rate Time
BinaryNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.136
BinaryNodeParameterProviderFactoryTest 1 0 0 0 100% 0.129
ContentParameterProviderFactoryRepositoryTest 1 0 0 0 100% 0.156
ContentParameterProviderFactoryTest 9 0 0 0 100% 0.027
NodeDataParameterProviderFactoryTest 4 0 0 0 100% 0.59

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 9 0 0 0 100% 2.813
FromBinaryNodeTest 2 0 0 0 100% 0.337
FromContentTest 2 0 0 0 100% 0.334
FromNodeDataTest 1 0 0 0 100% 0.179

info.magnolia.imaging.variation

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

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentBasedCachingStrategyTest

testSelfSanity 0.003

CachingImageStreamerRepositoryTest

makeSureMIMETypeIsCorrectlyPersisted 1.872
shouldStoreNothingWhenUsingNullCachingStrategy 0
skipped
testGenerateAndStoreIsDoneUnderSystemContext 0.407
testConcurrencyAndJCRSessions 0
skipped
testRequestForSimilarUncachedImageOnlyGeneratesItOnce 0.295

DefaultImageGeneratorTest

fallbackToJpgIfNoExtensionExists 0.008
extensionIsTakenIntoAccountWhenObtainingOutputFormat 0.002

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0
createLinkForNonExistingVariationDefaultsToOriginalImage 0
createLinkForOriginalVariation 0.001
createLinkForNullVariationDefaultsToOriginalImage 0

ImagingTemplatingFunctionsTest

getImageVariationLinkFromBinaryWhenException 0.031
getImageVariationLinkFromBinaryAndTemplateDefinitionWithoutParameter 0.028
getImageVariationLinkFromBinaryContentMap 0.002
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMap 0
getImageVariationLinkFromBinary 0
getImageVariationLinkFromBinaryEscapedText 0.015
getImageVariationLinkFromBinaryContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionWhenNull 0.001
getImageVariationLinkFromBinaryAndTemplateDefinition 0
getImageVariationLinkFromBinaryWhenNull 0

ImagingModuleTest

testModuleStartRegistersSpiProviders 0.004
testModuleStopUnRegistersSpiProviders 0.001

ImagingServletTest

testGetCorrectMimeType 0.012
testRequestToFactoryToGeneratorToImage 0.001
testDoGetWrongExtension 0.001

AutoCropAndResizeTest

testDoesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.057
testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.032
testSquareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.076
testThereWereVerticalBlackBordersToo 0.04
testVerticalRatiosAlsoWork 0.024
testNoResizeIfWidthAndHeightAreNotSpecified 0.024
testSquareTargetUsesLargestPossibleZoneForHorizontalSource 0.024
testResizesUsingBothWidthAndHeightIfSpecified 0.007
testDoesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.017
testResizesProportionallyIfOnlyWidthIsSpecified 0.008
testResizesProportionallyIfOnlyHeightIsSpecified 0.006
testVerticalSourceWithVerticalRatioIsAlsoSwell 0.038
testVerticalSourceIsHandledJustAsWell 0.068
testPhilippSawBlackBorders 0.008
testRespectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.017

BoundedResizeTest

testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.018
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.042
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.145
testSmallImageNotEnlargedWhileExpandFalse 0.013
testAnotherOblongCase 0.005
testSmallImageIsEnlargedWhileExpandTrue 0.01
testWhatHappensIfWeOnlySpecifyMaxWidth 0.003
testAlsoWorksWithOblongImages 0.008
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.023

CoordsTest

testThrowsExceptionWhenCalculatingWidthAndHeightWithInvalidCoordinates 0
testCalculatesWidthAndHeightProperly 0

CropAndResizeQualityTest

testPngNeedsAnEyeToCheck 0.195
testJpgNeedsAnEyeToCheck 0.105

MultiStepResizerTest

testJpgNeedsAnEyeToCheck 0.204

SelectedCropAndResizeTest

testCanDecodeLegacyCropInfoStrings 0.037

ImageOperationChainTest

testBlankAndWood 0.275
testSomeTransformations 0.731

AbstractLoaderTest

testBufferedImageFromPngWithAlpha 0.391
testTransparencyOfIndexedImageIsNotLost 0.393
gifToJpgCase4BitImage 0.324
gifToGifCase4BitImage 0.369
testBufferedImageFromBmp 0.232
testBufferedImageFromJpg 0.377
testBufferedImageFromPng 0.263
testBackgroundColor 0.228
gifToPngCase4BitImage 0.236

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.169
testNodeHasBinaryNode 0.168

FromContentTest

testUnexistingPropertyYieldsAProperException 0.148
testNonBinaryPropertyYieldsAProperException 0.186

FromNodeDataTest

testNonBinaryPropertyYieldsAProperException 0.179

OutputFormatTest

testCompressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
testCompressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenFalse 0
testQualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenTrue 0

BinaryNodeIdentifierParameterProviderFactoryTest

testPathInfoSplitting 0.136

BinaryNodeParameterProviderFactoryTest

testPathInfoSplitting 0.129

ContentParameterProviderFactoryRepositoryTest

testWrapsContentSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.156

ContentParameterProviderFactoryTest

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

NodeDataParameterProviderFactoryTest

testExistingPropertyJustWorks 0.171
testWrapsNodeDataSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.144
testReturnsWrappedNonExistingNodeDataIfPropertyDoesNotExist 0.132
testYieldsAProperExceptionIfGeneratorNameIsOmmitted 0.143

SelfTest

testCanGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.137
testNodeParameterProviderHandlesTimestampsProperly 0.22

ImagingModuleVersionHandlerTest

testCleanInstallAddsPermissionsForImagingBaseRole 0.392
updateTo32InstallsTemplatingFunctions 0.294
cleanInstall 0.286
testUpdateFrom31AddsPermissionsForImagingBaseRole 0.208
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.203
updateTo32InstallsNewDefaultImageGenerator 0.191
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.255
updateTo32ExcludesImagingFromFlushCache 0.257

ColorConverterTest

testCanDecodeHexa 0
testFailsOnUnknownName 0
testCanDecodeNames 0

ImageUtilTest

testPerformance 0.013
canHandleImageCreatedByBlankOperationWithBackgroundColor 0.012
canHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.011
testJpegOddity 0.024
canHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.021
getImageTypeByteBinaryWithAlpha 0.007
getImageTypeIndexedTypeWithoutAlpha 0.007
testHuffmanImageDecoding 0.032
canHandleTransparentPNGSourceWhenFlatteningForJPEG 0.007
canHandleTransparentGIFSourceWhenFlatteningForJPEG 0.007
testLoadingPerformance 0.583
canHandleOpaquePNGSourceWhenFlatteningForJPEG 0.018
getOriginalImageType 0.005
getImageTypeByteBinaryWithoutAlpha 0.005
getImageTypeIndexedTypeWithAlpha 0.005
canHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.009
canHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.008

PathSplitterTest

testExtensionCanBeKeptAndIsNotCountingAsAnElement 0
testNullsAreHandledGracefullyCauseWeAreThatNice 0
testDotsInPathNotAtTheEndAreNotTrimmed 0
testDotsInPathOnlyOneToSplitTrimExtension 0
testDotsInNames 0.001
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.005
defaultVariationReturnsLinkToParentWithExtension 0
variationReturnsNullWhenBinaryIsNull 0
defaultVariationReturnsNullWhenException 0.001

Failure Details

[Summary] [Package List] [Test Cases]


shouldStoreNothingWhenUsingNullCachingStrategy
skipped: skipped
testConcurrencyAndJCRSessions
skipped: skipped