Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
140 0 0 2 98.571% 20.578

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% 4.033
info.magnolia.imaging.functions 11 0 0 0 100% 0.105
info.magnolia.imaging.util 36 0 0 0 100% 0.826
info.magnolia.imaging 16 0 0 0 100% 0.936
info.magnolia.imaging.operations 2 0 0 0 100% 1.215
info.magnolia.imaging.caching 5 0 0 2 60% 3.346
info.magnolia.imaging.operations.cropresize 30 0 0 0 100% 2.315
info.magnolia.imaging.parameters 16 0 0 0 100% 2.032
info.magnolia.imaging.operations.load 12 0 0 0 100% 5.755
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 8 0 0 0 100% 4.033

info.magnolia.imaging.functions

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

info.magnolia.imaging.util

Class Tests Errors Failures Skipped Success Rate Time
ColorConverterTest 3 0 0 0 100% 0.01
ImageUtilTest 15 0 0 0 100% 0.814
PathSplitterTest 18 0 0 0 100% 0.002

info.magnolia.imaging

Class Tests Errors Failures Skipped Success Rate Time
DefaultImagingSupportTest 4 0 0 0 100% 0.014
ImagingModuleTest 2 0 0 0 100% 0.009
ImagingServletTest 3 0 0 0 100% 0.045
OutputFormatTest 5 0 0 0 100% 0
SelfTest 2 0 0 0 100% 0.868

info.magnolia.imaging.operations

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

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

info.magnolia.imaging.operations.cropresize

Class Tests Errors Failures Skipped Success Rate Time
AutoCropAndResizeTest 15 0 0 0 100% 0.784
BoundedResizeTest 9 0 0 0 100% 0.551
CoordsTest 2 0 0 0 100% 0
CropAndResizeQualityTest 2 0 0 0 100% 0.566
MultiStepResizerTest 1 0 0 0 100% 0.334
SelectedCropAndResizeTest 1 0 0 0 100% 0.08

info.magnolia.imaging.parameters

Class Tests Errors Failures Skipped Success Rate Time
BinaryNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.349
BinaryNodeParameterProviderFactoryTest 1 0 0 0 100% 0.28
ContentParameterProviderFactoryRepositoryTest 1 0 0 0 100% 0.267
ContentParameterProviderFactoryTest 9 0 0 0 100% 0.042
NodeDataParameterProviderFactoryTest 4 0 0 0 100% 1.094

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 7 0 0 0 100% 4.161
FromBinaryNodeTest 2 0 0 0 100% 0.655
FromContentTest 2 0 0 0 100% 0.607
FromNodeDataTest 1 0 0 0 100% 0.332

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

shouldStoreNothingWhenUsingNullCachingStrategy 0
skipped
testGenerateAndStoreIsDoneUnderSystemContext 2.589
testConcurrencyAndJCRSessions 0
skipped
testRequestForSimilarUncachedImageOnlyGeneratesItOnce 0.756

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0.013
createLinkForNonExistingVariationDefaultsToOriginalImage 0
createLinkForOriginalVariation 0.001
createLinkForNullVariationDefaultsToOriginalImage 0

ImagingTemplatingFunctionsTest

getImageVariationLinkFromBinaryWhenException 0.058
getImageVariationLinkFromBinaryAndTemplateDefinitionWithoutParameter 0.033
getImageVariationLinkFromBinaryContentMap 0.005
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMap 0.002
getImageVariationLinkFromBinary 0
getImageVariationLinkFromBinaryEscapedText 0.004
getImageVariationLinkFromBinaryContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionWhenNull 0.002
getImageVariationLinkFromBinaryAndTemplateDefinition 0.001
getImageVariationLinkFromBinaryWhenNull 0

ImagingModuleTest

testModuleStartRegistersSpiProviders 0.006
testModuleStopUnRegistersSpiProviders 0.003

ImagingServletTest

testGetCorrectMimeType 0.039
testRequestToFactoryToGeneratorToImage 0.004
testDoGetWrongExtension 0.002

AutoCropAndResizeTest

testDoesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.157
testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.044
testSquareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.145
testThereWereVerticalBlackBordersToo 0.06
testVerticalRatiosAlsoWork 0.042
testNoResizeIfWidthAndHeightAreNotSpecified 0.018
testSquareTargetUsesLargestPossibleZoneForHorizontalSource 0.048
testResizesUsingBothWidthAndHeightIfSpecified 0.018
testDoesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.035
testResizesProportionallyIfOnlyWidthIsSpecified 0.011
testResizesProportionallyIfOnlyHeightIsSpecified 0.014
testVerticalSourceWithVerticalRatioIsAlsoSwell 0.071
testVerticalSourceIsHandledJustAsWell 0.085
testPhilippSawBlackBorders 0.011
testRespectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.025

BoundedResizeTest

testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.039
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.055
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.345
testSmallImageNotEnlargedWhileExpandFalse 0.012
testAnotherOblongCase 0.011
testSmallImageIsEnlargedWhileExpandTrue 0.022
testWhatHappensIfWeOnlySpecifyMaxWidth 0.008
testAlsoWorksWithOblongImages 0.016
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.043

CoordsTest

testThrowsExceptionWhenCalculatingWidthAndHeightWithInvalidCoordinates 0
testCalculatesWidthAndHeightProperly 0

CropAndResizeQualityTest

testPngNeedsAnEyeToCheck 0.382
testJpgNeedsAnEyeToCheck 0.184

MultiStepResizerTest

testJpgNeedsAnEyeToCheck 0.334

SelectedCropAndResizeTest

testCanDecodeLegacyCropInfoStrings 0.08

ImageOperationChainTest

testBlankAndWood 0.447
testSomeTransformations 0.768

AbstractLoaderTest

testBufferedImageFromPngWithAlpha 0.7
testTransparencyOfIndexedImageIsNotLost 0.735
testBufferedImageFromBmp 0.524
testBufferedImageFromGif 0.639
testBufferedImageFromJpg 0.55
testBufferedImageFromPng 0.599
testBackgroundColor 0.414

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.301
testNodeHasBinaryNode 0.354

FromContentTest

testUnexistingPropertyYieldsAProperException 0.32
testNonBinaryPropertyYieldsAProperException 0.287

FromNodeDataTest

testNonBinaryPropertyYieldsAProperException 0.332

OutputFormatTest

testCompressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
testCompressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenFalse 0
testQualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenTrue 0

BinaryNodeIdentifierParameterProviderFactoryTest

testPathInfoSplitting 0.349

BinaryNodeParameterProviderFactoryTest

testPathInfoSplitting 0.28

ContentParameterProviderFactoryRepositoryTest

testWrapsContentSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.267

ContentParameterProviderFactoryTest

testExtensionIsIgnoredAlsoForTopLevelNodeIfTrimExtensionIsTrue 0.033
testExtensionIsNotIgnoredAlsoForTopLevelNodeIfTrimExtensionIsFalse 0.001
testFailsIfNoPathInfo 0
testDeepNodeIsRetrieved 0.003
testExtensionIsNotIgnoredIfTrimExtensionIsFalse 0.001
testExtensionIsIgnoredIfTrimExtensionIsTrue 0.001
testFailsIfWorkspaceNorNodePath 0.001
testCanGetTheRootNodeIfNeededButWhoWantsThis 0.001
testNodeAtFirstLevelIsRetrievedToo 0.001

NodeDataParameterProviderFactoryTest

testExistingPropertyJustWorks 0.334
testWrapsNodeDataSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.261
testReturnsWrappedNonExistingNodeDataIfPropertyDoesNotExist 0.244
testYieldsAProperExceptionIfGeneratorNameIsOmmitted 0.255

SelfTest

testCanGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.298
testNodeParameterProviderHandlesTimestampsProperly 0.57

ImagingModuleVersionHandlerTest

testCleanInstallAddsPermissionsForImagingBaseRole 0.683
updateTo32InstallsTemplatingFunctions 0.696
cleanInstall 0.478
testUpdateFrom31AddsPermissionsForImagingBaseRole 0.409
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.377
updateTo32InstallsNewDefaultImageGenerator 0.525
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.388
updateTo32ExcludesImagingFromFlushCache 0.477

ColorConverterTest

testCanDecodeHexa 0.002
testFailsOnUnknownName 0.002
testCanDecodeNames 0.006

ImageUtilTest

testPerformance 0.008
testCanHandleTransparentPNGSourceWhenFlatteningForJPEG 0.019
testCanHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.022
testJpegOddity 0.038
testCanHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.008
testCanHandleTransparentGIFSourceWhenFlatteningForJPEG 0.008
testDecodingHuffmanImage 0.036
testGetImageTypeIndexedTypeWithoutAlpha 0.019
testGetOriginalImageType 0.007
testCanHandleImageCreatedByBlankOperationWithBackgroundColor 0.009
testGetImageTypeIndexedTypeWithAlpha 0.005
testCanHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.01
testCanHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.021
testLoadingPerformance 0.585
testCanHandleOpaquePNGSourceWhenFlatteningForJPEG 0.019

PathSplitterTest

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

Failure Details

[Summary] [Package List] [Test Cases]


shouldStoreNothingWhenUsingNullCachingStrategy
skipped: skipped
testConcurrencyAndJCRSessions
skipped: skipped