Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
136 0 0 1 99.265% 20.338

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.007
info.magnolia.imaging.operations.cropresize 30 0 0 0 100% 1.968
info.magnolia.imaging.setup 8 0 0 0 100% 3.656
info.magnolia.imaging.operations.load 12 0 0 0 100% 5.569
info.magnolia.imaging.operations 2 0 0 0 100% 1.006
info.magnolia.imaging.functions 11 0 0 0 100% 0.132
info.magnolia.imaging.parameters 14 0 0 0 100% 2.334
info.magnolia.imaging.util 36 0 0 0 100% 0.89
info.magnolia.imaging.caching 4 0 0 1 75% 3.937
info.magnolia.imaging 15 0 0 0 100% 0.839

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

info.magnolia.imaging.operations.cropresize

Class Tests Errors Failures Skipped Success Rate Time
AutoCropAndResizeTest 15 0 0 0 100% 0.792
BoundedResizeTest 9 0 0 0 100% 0.433
CoordsTest 2 0 0 0 100% 0
CropAndResizeQualityTest 2 0 0 0 100% 0.423
MultiStepResizerTest 1 0 0 0 100% 0.267
SelectedCropAndResizeTest 1 0 0 0 100% 0.053

info.magnolia.imaging.setup

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

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 7 0 0 0 100% 3.836
FromBinaryNodeTest 2 0 0 0 100% 0.679
FromContentTest 2 0 0 0 100% 0.692
FromNodeDataTest 1 0 0 0 100% 0.362

info.magnolia.imaging.operations

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

info.magnolia.imaging.functions

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

info.magnolia.imaging.parameters

Class Tests Errors Failures Skipped Success Rate Time
BinaryNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.38
BinaryNodeParameterProviderFactoryTest 1 0 0 0 100% 0.37
ContentParameterProviderFactoryRepositoryTest 1 0 0 0 100% 0.309
ContentParameterProviderFactoryTest 7 0 0 0 100% 0.002
NodeDataParameterProviderFactoryTest 4 0 0 0 100% 1.273

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.888
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 3 0 0 1 66.667% 3.931

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.01
ImagingServletTest 2 0 0 0 100% 0.151
OutputFormatTest 5 0 0 0 100% 0
SelfTest 2 0 0 0 100% 0.664

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentBasedCachingStrategyTest

testSelfSanity 0.006

CachingImageStreamerRepositoryTest

testGenerateAndStoreIsDoneUnderSystemContext 3.001
testConcurrencyAndJCRSessions 0
skipped
testRequestForSimilarUncachedImageOnlyGeneratesItOnce 0.93

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0.012
createLinkForNonExistingVariationDefaultsToOriginalImage 0.001
createLinkForOriginalVariation 0
createLinkForNullVariationDefaultsToOriginalImage 0.001

ImagingTemplatingFunctionsTest

getImageVariationLinkFromBinaryWhenException 0.054
getImageVariationLinkFromBinaryAndTemplateDefinitionWithoutParameter 0.065
getImageVariationLinkFromBinaryContentMap 0.003
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMap 0.002
getImageVariationLinkFromBinary 0.001
getImageVariationLinkFromBinaryEscapedText 0.005
getImageVariationLinkFromBinaryContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionWhenNull 0.001
getImageVariationLinkFromBinaryAndTemplateDefinition 0.001
getImageVariationLinkFromBinaryWhenNull 0

ImagingModuleTest

testModuleStartRegistersSpiProviders 0.008
testModuleStopUnRegistersSpiProviders 0.002

ImagingServletTest

testRequestToFactoryToGeneratorToImage 0.147
testDoGetWrongExtension 0.004

AutoCropAndResizeTest

testDoesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.202
testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.037
testSquareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.118
testThereWereVerticalBlackBordersToo 0.038
testVerticalRatiosAlsoWork 0.056
testNoResizeIfWidthAndHeightAreNotSpecified 0.016
testSquareTargetUsesLargestPossibleZoneForHorizontalSource 0.041
testResizesUsingBothWidthAndHeightIfSpecified 0.011
testDoesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.039
testResizesProportionallyIfOnlyWidthIsSpecified 0.015
testResizesProportionallyIfOnlyHeightIsSpecified 0.012
testVerticalSourceWithVerticalRatioIsAlsoSwell 0.073
testVerticalSourceIsHandledJustAsWell 0.096
testPhilippSawBlackBorders 0.014
testRespectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.024

BoundedResizeTest

testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.029
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.055
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.264
testSmallImageNotEnlargedWhileExpandFalse 0.009
testAnotherOblongCase 0.009
testSmallImageIsEnlargedWhileExpandTrue 0.014
testWhatHappensIfWeOnlySpecifyMaxWidth 0.006
testAlsoWorksWithOblongImages 0.012
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.035

CoordsTest

testThrowsExceptionWhenCalculatingWidthAndHeightWithInvalidCoordinates 0
testCalculatesWidthAndHeightProperly 0

CropAndResizeQualityTest

testPngNeedsAnEyeToCheck 0.328
testJpgNeedsAnEyeToCheck 0.095

MultiStepResizerTest

testJpgNeedsAnEyeToCheck 0.267

SelectedCropAndResizeTest

testCanDecodeLegacyCropInfoStrings 0.053

ImageOperationChainTest

testBlankAndWood 0.382
testSomeTransformations 0.624

AbstractLoaderTest

testBufferedImageFromPngWithAlpha 0.623
testTransparencyOfIndexedImageIsNotLost 0.436
testBufferedImageFromBmp 0.412
testBufferedImageFromGif 0.565
testBufferedImageFromJpg 0.52
testBufferedImageFromPng 0.862
testBackgroundColor 0.418

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.296
testNodeHasBinaryNode 0.383

FromContentTest

testUnexistingPropertyYieldsAProperException 0.338
testNonBinaryPropertyYieldsAProperException 0.354

FromNodeDataTest

testNonBinaryPropertyYieldsAProperException 0.362

OutputFormatTest

testCompressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
testCompressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenFalse 0
testQualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenTrue 0

BinaryNodeIdentifierParameterProviderFactoryTest

testPathInfoSplitting 0.38

BinaryNodeParameterProviderFactoryTest

testPathInfoSplitting 0.37

ContentParameterProviderFactoryRepositoryTest

testWrapsContentSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.309

ContentParameterProviderFactoryTest

testExtensionIsIgnoredAlsoForTopLevelNode 0
testFailsIfNoPathInfo 0
testDeepNodeIsRetrieved 0
testExtensionIsIgnored 0.001
testFailsIfWorkspaceNorNodePath 0
testCanGetTheRootNodeIfNeededButWhoWantsThis 0.001
testNodeAtFirstLevelIsRetrievedToo 0

NodeDataParameterProviderFactoryTest

testExistingPropertyJustWorks 0.3
testWrapsNodeDataSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.26
testReturnsWrappedNonExistingNodeDataIfPropertyDoesNotExist 0.401
testYieldsAProperExceptionIfGeneratorNameIsOmmitted 0.312

SelfTest

testCanGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.28
testNodeParameterProviderHandlesTimestampsProperly 0.384

ImagingModuleVersionHandlerTest

testCleanInstallAddsPermissionsForImagingBaseRole 0.758
updateTo32InstallsTemplatingFunctions 0.529
cleanInstall 0.43
testUpdateFrom31AddsPermissionsForImagingBaseRole 0.416
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.403
updateTo32InstallsNewDefaultImageGenerator 0.385
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.382
updateTo32ExcludesImagingFromFlushCache 0.353

ColorConverterTest

testCanDecodeHexa 0
testFailsOnUnknownName 0
testCanDecodeNames 0.001

ImageUtilTest

testPerformance 0.002
testCanHandleTransparentPNGSourceWhenFlatteningForJPEG 0.009
testCanHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.012
testJpegOddity 0.024
testCanHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.009
testCanHandleTransparentGIFSourceWhenFlatteningForJPEG 0.007
testDecodingHuffmanImage 0.048
testGetImageTypeIndexedTypeWithoutAlpha 0.02
testGetOriginalImageType 0.005
testCanHandleImageCreatedByBlankOperationWithBackgroundColor 0.008
testGetImageTypeIndexedTypeWithAlpha 0.005
testCanHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.009
testCanHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.027
testLoadingPerformance 0.685
testCanHandleOpaquePNGSourceWhenFlatteningForJPEG 0.018

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

DefaultVariationTest

defaultVariationReturnsLinkToParent 0.005
defaultVariationReturnsLinkToParentWithExtension 0
variationReturnsNullWhenBinaryIsNull 0.001
defaultVariationReturnsNullWhenException 0.001

Failure Details

[Summary] [Package List] [Test Cases]


testConcurrencyAndJCRSessions
skipped: skipped