Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.variation 4 0 0 0 100% 0.006
info.magnolia.imaging.operations.cropresize 30 0 0 0 100% 1.714
info.magnolia.imaging.setup 8 0 0 0 100% 2.779
info.magnolia.imaging.operations.load 14 0 0 0 100% 4.399
info.magnolia.imaging.operations 2 0 0 0 100% 0.965
info.magnolia.imaging.functions 11 0 0 0 100% 0.096
info.magnolia.imaging.parameters 16 0 0 0 100% 1.509
info.magnolia.imaging.util 38 0 0 0 100% 0.634
info.magnolia.imaging.caching 6 0 0 2 66.667% 4.165
info.magnolia.imaging 18 0 0 0 100% 0.536

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

info.magnolia.imaging.variation

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

info.magnolia.imaging.operations.cropresize

Class Tests Errors Failures Skipped Success Rate Time
AutoCropAndResizeTest 15 0 0 0 100% 0.634
BoundedResizeTest 9 0 0 0 100% 0.381
CoordsTest 2 0 0 0 100% 0
CropAndResizeQualityTest 2 0 0 0 100% 0.38
MultiStepResizerTest 1 0 0 0 100% 0.268
SelectedCropAndResizeTest 1 0 0 0 100% 0.051

info.magnolia.imaging.setup

Class Tests Errors Failures Skipped Success Rate Time
ImagingModuleVersionHandlerTest 8 0 0 0 100% 2.779

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 9 0 0 0 100% 3.254
FromBinaryNodeTest 2 0 0 0 100% 0.479
FromContentTest 2 0 0 0 100% 0.431
FromNodeDataTest 1 0 0 0 100% 0.235

info.magnolia.imaging.operations

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

info.magnolia.imaging.functions

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

info.magnolia.imaging.parameters

Class Tests Errors Failures Skipped Success Rate Time
BinaryNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.269
BinaryNodeParameterProviderFactoryTest 1 0 0 0 100% 0.192
ContentParameterProviderFactoryRepositoryTest 1 0 0 0 100% 0.185
ContentParameterProviderFactoryTest 9 0 0 0 100% 0.034
NodeDataParameterProviderFactoryTest 4 0 0 0 100% 0.829

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.633
PathSplitterTest 18 0 0 0 100% 0.001

info.magnolia.imaging.caching

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

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.008
ImagingServletTest 3 0 0 0 100% 0.019
OutputFormatTest 5 0 0 0 100% 0
SelfTest 2 0 0 0 100% 0.5

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentBasedCachingStrategyTest

testSelfSanity 0.006

CachingImageStreamerRepositoryTest

makeSureMIMETypeIsCorrectlyPersisted 2.846
shouldStoreNothingWhenUsingNullCachingStrategy 0
skipped
testGenerateAndStoreIsDoneUnderSystemContext 0.811
testConcurrencyAndJCRSessions 0
skipped
testRequestForSimilarUncachedImageOnlyGeneratesItOnce 0.502

DefaultImageGeneratorTest

fallbackToJpgIfNoExtensionExists 0.007
extensionIsTakenIntoAccountWhenObtainingOutputFormat 0.002

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0
createLinkForNonExistingVariationDefaultsToOriginalImage 0
createLinkForOriginalVariation 0
createLinkForNullVariationDefaultsToOriginalImage 0

ImagingTemplatingFunctionsTest

getImageVariationLinkFromBinaryWhenException 0.035
getImageVariationLinkFromBinaryAndTemplateDefinitionWithoutParameter 0.048
getImageVariationLinkFromBinaryContentMap 0.004
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMap 0.001
getImageVariationLinkFromBinary 0.001
getImageVariationLinkFromBinaryEscapedText 0.004
getImageVariationLinkFromBinaryContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionWhenNull 0.001
getImageVariationLinkFromBinaryAndTemplateDefinition 0.002
getImageVariationLinkFromBinaryWhenNull 0

ImagingModuleTest

testModuleStartRegistersSpiProviders 0.006
testModuleStopUnRegistersSpiProviders 0.002

ImagingServletTest

testGetCorrectMimeType 0.015
testRequestToFactoryToGeneratorToImage 0.003
testDoGetWrongExtension 0.001

AutoCropAndResizeTest

testDoesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.141
testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.033
testSquareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.106
testThereWereVerticalBlackBordersToo 0.042
testVerticalRatiosAlsoWork 0.04
testNoResizeIfWidthAndHeightAreNotSpecified 0.011
testSquareTargetUsesLargestPossibleZoneForHorizontalSource 0.034
testResizesUsingBothWidthAndHeightIfSpecified 0.009
testDoesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.026
testResizesProportionallyIfOnlyWidthIsSpecified 0.009
testResizesProportionallyIfOnlyHeightIsSpecified 0.02
testVerticalSourceWithVerticalRatioIsAlsoSwell 0.057
testVerticalSourceIsHandledJustAsWell 0.075
testPhilippSawBlackBorders 0.01
testRespectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.021

BoundedResizeTest

testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.026
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.049
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.232
testSmallImageNotEnlargedWhileExpandFalse 0.008
testAnotherOblongCase 0.007
testSmallImageIsEnlargedWhileExpandTrue 0.013
testWhatHappensIfWeOnlySpecifyMaxWidth 0.005
testAlsoWorksWithOblongImages 0.01
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.031

CoordsTest

testThrowsExceptionWhenCalculatingWidthAndHeightWithInvalidCoordinates 0
testCalculatesWidthAndHeightProperly 0

CropAndResizeQualityTest

testPngNeedsAnEyeToCheck 0.286
testJpgNeedsAnEyeToCheck 0.094

MultiStepResizerTest

testJpgNeedsAnEyeToCheck 0.268

SelectedCropAndResizeTest

testCanDecodeLegacyCropInfoStrings 0.051

ImageOperationChainTest

testBlankAndWood 0.393
testSomeTransformations 0.572

AbstractLoaderTest

testBufferedImageFromPngWithAlpha 0.475
testTransparencyOfIndexedImageIsNotLost 0.329
gifToJpgCase4BitImage 0.374
gifToGifCase4BitImage 0.398
testBufferedImageFromBmp 0.293
testBufferedImageFromJpg 0.414
testBufferedImageFromPng 0.377
testBackgroundColor 0.305
gifToPngCase4BitImage 0.289

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.244
testNodeHasBinaryNode 0.235

FromContentTest

testUnexistingPropertyYieldsAProperException 0.218
testNonBinaryPropertyYieldsAProperException 0.213

FromNodeDataTest

testNonBinaryPropertyYieldsAProperException 0.235

OutputFormatTest

testCompressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
testCompressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenFalse 0
testQualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenTrue 0

BinaryNodeIdentifierParameterProviderFactoryTest

testPathInfoSplitting 0.269

BinaryNodeParameterProviderFactoryTest

testPathInfoSplitting 0.192

ContentParameterProviderFactoryRepositoryTest

testWrapsContentSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.185

ContentParameterProviderFactoryTest

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

NodeDataParameterProviderFactoryTest

testExistingPropertyJustWorks 0.191
testWrapsNodeDataSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.198
testReturnsWrappedNonExistingNodeDataIfPropertyDoesNotExist 0.217
testYieldsAProperExceptionIfGeneratorNameIsOmmitted 0.223

SelfTest

testCanGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.244
testNodeParameterProviderHandlesTimestampsProperly 0.256

ImagingModuleVersionHandlerTest

testCleanInstallAddsPermissionsForImagingBaseRole 0.563
updateTo32InstallsTemplatingFunctions 0.379
cleanInstall 0.35
testUpdateFrom31AddsPermissionsForImagingBaseRole 0.304
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.294
updateTo32InstallsNewDefaultImageGenerator 0.287
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.314
updateTo32ExcludesImagingFromFlushCache 0.288

ColorConverterTest

testCanDecodeHexa 0
testFailsOnUnknownName 0
testCanDecodeNames 0

ImageUtilTest

testPerformance 0.013
canHandleImageCreatedByBlankOperationWithBackgroundColor 0.007
canHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.006
testJpegOddity 0.019
canHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.021
getImageTypeByteBinaryWithAlpha 0.005
getImageTypeIndexedTypeWithoutAlpha 0.004
testHuffmanImageDecoding 0.027
canHandleTransparentPNGSourceWhenFlatteningForJPEG 0.008
canHandleTransparentGIFSourceWhenFlatteningForJPEG 0.006
testLoadingPerformance 0.474
canHandleOpaquePNGSourceWhenFlatteningForJPEG 0.013
getOriginalImageType 0.005
getImageTypeByteBinaryWithoutAlpha 0.005
getImageTypeIndexedTypeWithAlpha 0.005
canHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.009
canHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.006

PathSplitterTest

testExtensionCanBeKeptAndIsNotCountingAsAnElement 0
testNullsAreHandledGracefullyCauseWeAreThatNice 0
testDotsInPathNotAtTheEndAreNotTrimmed 0
testDotsInPathOnlyOneToSplitTrimExtension 0
testDotsInNames 0
testLeadingAndTralingslahesAreIgnored 0
testEmptyStringYieldsNoResults 0.001
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.001

Failure Details

[Summary] [Package List] [Test Cases]


shouldStoreNothingWhenUsingNullCachingStrategy
skipped: skipped
testConcurrencyAndJCRSessions
skipped: skipped