Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
138 0 0 1 99.275% 14.298

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.005
info.magnolia.imaging.operations.cropresize 30 0 0 0 100% 1.492
info.magnolia.imaging.setup 8 0 0 0 100% 2.977
info.magnolia.imaging.operations.load 12 0 0 0 100% 3.437
info.magnolia.imaging.operations 2 0 0 0 100% 0.78
info.magnolia.imaging.functions 11 0 0 0 100% 0.079
info.magnolia.imaging.parameters 16 0 0 0 100% 1.43
info.magnolia.imaging.util 36 0 0 0 100% 0.672
info.magnolia.imaging.caching 4 0 0 1 75% 2.862
info.magnolia.imaging 15 0 0 0 100% 0.564

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

info.magnolia.imaging.operations.cropresize

Class Tests Errors Failures Skipped Success Rate Time
AutoCropAndResizeTest 15 0 0 0 100% 0.555
BoundedResizeTest 9 0 0 0 100% 0.337
CoordsTest 2 0 0 0 100% 0
CropAndResizeQualityTest 2 0 0 0 100% 0.319
MultiStepResizerTest 1 0 0 0 100% 0.238
SelectedCropAndResizeTest 1 0 0 0 100% 0.043

info.magnolia.imaging.setup

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

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 7 0 0 0 100% 2.352
FromBinaryNodeTest 2 0 0 0 100% 0.463
FromContentTest 2 0 0 0 100% 0.418
FromNodeDataTest 1 0 0 0 100% 0.204

info.magnolia.imaging.operations

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

info.magnolia.imaging.functions

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

info.magnolia.imaging.parameters

Class Tests Errors Failures Skipped Success Rate Time
BinaryNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.22
BinaryNodeParameterProviderFactoryTest 1 0 0 0 100% 0.184
ContentParameterProviderFactoryRepositoryTest 1 0 0 0 100% 0.181
ContentParameterProviderFactoryTest 9 0 0 0 100% 0.003
NodeDataParameterProviderFactoryTest 4 0 0 0 100% 0.842

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.669
PathSplitterTest 18 0 0 0 100% 0.002

info.magnolia.imaging.caching

Class Tests Errors Failures Skipped Success Rate Time
AbstractContentBasedCachingStrategyTest 1 0 0 0 100% 0.004
CachingImageStreamerRepositoryTest 3 0 0 1 66.667% 2.858

info.magnolia.imaging

Class Tests Errors Failures Skipped Success Rate Time
DefaultImagingSupportTest 4 0 0 0 100% 0.007
ImagingModuleTest 2 0 0 0 100% 0.008
ImagingServletTest 2 0 0 0 100% 0.091
OutputFormatTest 5 0 0 0 100% 0
SelfTest 2 0 0 0 100% 0.458

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentBasedCachingStrategyTest

testSelfSanity 0.004

CachingImageStreamerRepositoryTest

testGenerateAndStoreIsDoneUnderSystemContext 2.197
testConcurrencyAndJCRSessions 0
skipped
testRequestForSimilarUncachedImageOnlyGeneratesItOnce 0.661

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0.007
createLinkForNonExistingVariationDefaultsToOriginalImage 0
createLinkForOriginalVariation 0
createLinkForNullVariationDefaultsToOriginalImage 0

ImagingTemplatingFunctionsTest

getImageVariationLinkFromBinaryWhenException 0.032
getImageVariationLinkFromBinaryAndTemplateDefinitionWithoutParameter 0.038
getImageVariationLinkFromBinaryContentMap 0.003
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMap 0.001
getImageVariationLinkFromBinary 0
getImageVariationLinkFromBinaryEscapedText 0.004
getImageVariationLinkFromBinaryContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionWhenNull 0.001
getImageVariationLinkFromBinaryAndTemplateDefinition 0
getImageVariationLinkFromBinaryWhenNull 0

ImagingModuleTest

testModuleStartRegistersSpiProviders 0.006
testModuleStopUnRegistersSpiProviders 0.002

ImagingServletTest

testRequestToFactoryToGeneratorToImage 0.088
testDoGetWrongExtension 0.003

AutoCropAndResizeTest

testDoesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.123
testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.031
testSquareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.095
testThereWereVerticalBlackBordersToo 0.032
testVerticalRatiosAlsoWork 0.031
testNoResizeIfWidthAndHeightAreNotSpecified 0.01
testSquareTargetUsesLargestPossibleZoneForHorizontalSource 0.032
testResizesUsingBothWidthAndHeightIfSpecified 0.008
testDoesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.023
testResizesProportionallyIfOnlyWidthIsSpecified 0.008
testResizesProportionallyIfOnlyHeightIsSpecified 0.007
testVerticalSourceWithVerticalRatioIsAlsoSwell 0.05
testVerticalSourceIsHandledJustAsWell 0.078
testPhilippSawBlackBorders 0.009
testRespectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.018

BoundedResizeTest

testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.022
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.049
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.198
testSmallImageNotEnlargedWhileExpandFalse 0.008
testAnotherOblongCase 0.006
testSmallImageIsEnlargedWhileExpandTrue 0.011
testWhatHappensIfWeOnlySpecifyMaxWidth 0.005
testAlsoWorksWithOblongImages 0.008
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.03

CoordsTest

testThrowsExceptionWhenCalculatingWidthAndHeightWithInvalidCoordinates 0
testCalculatesWidthAndHeightProperly 0

CropAndResizeQualityTest

testPngNeedsAnEyeToCheck 0.238
testJpgNeedsAnEyeToCheck 0.081

MultiStepResizerTest

testJpgNeedsAnEyeToCheck 0.238

SelectedCropAndResizeTest

testCanDecodeLegacyCropInfoStrings 0.043

ImageOperationChainTest

testBlankAndWood 0.324
testSomeTransformations 0.456

AbstractLoaderTest

testBufferedImageFromPngWithAlpha 0.423
testTransparencyOfIndexedImageIsNotLost 0.306
testBufferedImageFromBmp 0.281
testBufferedImageFromGif 0.366
testBufferedImageFromJpg 0.335
testBufferedImageFromPng 0.323
testBackgroundColor 0.318

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.259
testNodeHasBinaryNode 0.204

FromContentTest

testUnexistingPropertyYieldsAProperException 0.214
testNonBinaryPropertyYieldsAProperException 0.204

FromNodeDataTest

testNonBinaryPropertyYieldsAProperException 0.204

OutputFormatTest

testCompressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
testCompressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenFalse 0
testQualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenTrue 0

BinaryNodeIdentifierParameterProviderFactoryTest

testPathInfoSplitting 0.22

BinaryNodeParameterProviderFactoryTest

testPathInfoSplitting 0.184

ContentParameterProviderFactoryRepositoryTest

testWrapsContentSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.181

ContentParameterProviderFactoryTest

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

NodeDataParameterProviderFactoryTest

testExistingPropertyJustWorks 0.193
testWrapsNodeDataSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.197
testReturnsWrappedNonExistingNodeDataIfPropertyDoesNotExist 0.224
testYieldsAProperExceptionIfGeneratorNameIsOmmitted 0.228

SelfTest

testCanGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.223
testNodeParameterProviderHandlesTimestampsProperly 0.235

ImagingModuleVersionHandlerTest

testCleanInstallAddsPermissionsForImagingBaseRole 0.48
updateTo32InstallsTemplatingFunctions 0.394
cleanInstall 0.35
testUpdateFrom31AddsPermissionsForImagingBaseRole 0.333
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.328
updateTo32InstallsNewDefaultImageGenerator 0.326
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.368
updateTo32ExcludesImagingFromFlushCache 0.398

ColorConverterTest

testCanDecodeHexa 0.001
testFailsOnUnknownName 0
testCanDecodeNames 0

ImageUtilTest

testPerformance 0.001
testCanHandleTransparentPNGSourceWhenFlatteningForJPEG 0.008
testCanHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.012
testJpegOddity 0.017
testCanHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.008
testCanHandleTransparentGIFSourceWhenFlatteningForJPEG 0.007
testDecodingHuffmanImage 0.028
testGetImageTypeIndexedTypeWithoutAlpha 0.018
testGetOriginalImageType 0.006
testCanHandleImageCreatedByBlankOperationWithBackgroundColor 0.009
testGetImageTypeIndexedTypeWithAlpha 0.003
testCanHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.009
testCanHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.031
testLoadingPerformance 0.495
testCanHandleOpaquePNGSourceWhenFlatteningForJPEG 0.017

PathSplitterTest

testExtensionCanBeKeptAndIsNotCountingAsAnElement 0
testNullsAreHandledGracefullyCauseWeAreThatNice 0
testDotsInPathNotAtTheEndAreNotTrimmed 0
testDotsInPathOnlyOneToSplitTrimExtension 0
testDotsInNames 0
testLeadingAndTralingslahesAreIgnored 0
testEmptyStringYieldsNoResults 0
testTrimExtensionProperly 0.001
testRemainingCanBeCalledEvenIfWeAlreadyReachedTheLastElement 0
testEmptyElementsBeforeTrailingSlashWorkToo 0
testEmptyElementsMatter 0
testEmptyElementsAfterLeadingSlashWorkToo 0
testOnlyOneToSplit 0
testNextAndSkipCallsDontOverlapEachOther 0
testDocumentedExample 0.001
testRemainingCanBeCalledFromTheStartEvenIfThisSeemsQuiteUseless 0
testDotsInPathOnlyOneToSplit 0
testExtensionIsTrimmedByDefault 0

DefaultVariationTest

defaultVariationReturnsLinkToParent 0.003
defaultVariationReturnsLinkToParentWithExtension 0.001
variationReturnsNullWhenBinaryIsNull 0
defaultVariationReturnsNullWhenException 0.001

Failure Details

[Summary] [Package List] [Test Cases]


testConcurrencyAndJCRSessions
skipped: skipped