Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.53
info.magnolia.imaging.setup 8 0 0 0 100% 2.565
info.magnolia.imaging.operations.load 12 0 0 0 100% 3.506
info.magnolia.imaging.operations 2 0 0 0 100% 0.764
info.magnolia.imaging.functions 11 0 0 0 100% 0.08
info.magnolia.imaging.parameters 14 0 0 0 100% 1.351
info.magnolia.imaging.util 36 0 0 0 100% 0.591
info.magnolia.imaging.caching 4 0 0 1 75% 2.968
info.magnolia.imaging 15 0 0 0 100% 0.616

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.585
BoundedResizeTest 9 0 0 0 100% 0.344
CoordsTest 2 0 0 0 100% 0
CropAndResizeQualityTest 2 0 0 0 100% 0.321
MultiStepResizerTest 1 0 0 0 100% 0.235
SelectedCropAndResizeTest 1 0 0 0 100% 0.045

info.magnolia.imaging.setup

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

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 7 0 0 0 100% 2.382
FromBinaryNodeTest 2 0 0 0 100% 0.479
FromContentTest 2 0 0 0 100% 0.421
FromNodeDataTest 1 0 0 0 100% 0.224

info.magnolia.imaging.operations

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

info.magnolia.imaging.functions

Class Tests Errors Failures Skipped Success Rate Time
ImagingTemplatingFunctionsTest 11 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.197
BinaryNodeParameterProviderFactoryTest 1 0 0 0 100% 0.218
ContentParameterProviderFactoryRepositoryTest 1 0 0 0 100% 0.183
ContentParameterProviderFactoryTest 7 0 0 0 100% 0.001
NodeDataParameterProviderFactoryTest 4 0 0 0 100% 0.752

info.magnolia.imaging.util

Class Tests Errors Failures Skipped Success Rate Time
ColorConverterTest 3 0 0 0 100% 0
ImageUtilTest 15 0 0 0 100% 0.59
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.002
CachingImageStreamerRepositoryTest 3 0 0 1 66.667% 2.966

info.magnolia.imaging

Class Tests Errors Failures Skipped Success Rate Time
DefaultImagingSupportTest 4 0 0 0 100% 0.009
ImagingModuleTest 2 0 0 0 100% 0.005
ImagingServletTest 2 0 0 0 100% 0.094
OutputFormatTest 5 0 0 0 100% 0
SelfTest 2 0 0 0 100% 0.508

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentBasedCachingStrategyTest

testSelfSanity 0.002

CachingImageStreamerRepositoryTest

testGenerateAndStoreIsDoneUnderSystemContext 2.295
testConcurrencyAndJCRSessions 0
skipped
testRequestForSimilarUncachedImageOnlyGeneratesItOnce 0.671

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0.007
createLinkForNonExistingVariationDefaultsToOriginalImage 0.001
createLinkForOriginalVariation 0
createLinkForNullVariationDefaultsToOriginalImage 0.001

ImagingTemplatingFunctionsTest

getImageVariationLinkFromBinaryWhenException 0.03
getImageVariationLinkFromBinaryAndTemplateDefinitionWithoutParameter 0.042
getImageVariationLinkFromBinaryContentMap 0.002
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMap 0.001
getImageVariationLinkFromBinary 0
getImageVariationLinkFromBinaryEscapedText 0.003
getImageVariationLinkFromBinaryContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionWhenNull 0.001
getImageVariationLinkFromBinaryAndTemplateDefinition 0.001
getImageVariationLinkFromBinaryWhenNull 0

ImagingModuleTest

testModuleStartRegistersSpiProviders 0.003
testModuleStopUnRegistersSpiProviders 0.002

ImagingServletTest

testRequestToFactoryToGeneratorToImage 0.091
testDoGetWrongExtension 0.003

AutoCropAndResizeTest

testDoesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.158
testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.029
testSquareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.095
testThereWereVerticalBlackBordersToo 0.031
testVerticalRatiosAlsoWork 0.032
testNoResizeIfWidthAndHeightAreNotSpecified 0.012
testSquareTargetUsesLargestPossibleZoneForHorizontalSource 0.032
testResizesUsingBothWidthAndHeightIfSpecified 0.007
testDoesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.024
testResizesProportionallyIfOnlyWidthIsSpecified 0.008
testResizesProportionallyIfOnlyHeightIsSpecified 0.007
testVerticalSourceWithVerticalRatioIsAlsoSwell 0.049
testVerticalSourceIsHandledJustAsWell 0.075
testPhilippSawBlackBorders 0.008
testRespectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.018

BoundedResizeTest

testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.022
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.044
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.202
testSmallImageNotEnlargedWhileExpandFalse 0.007
testAnotherOblongCase 0.008
testSmallImageIsEnlargedWhileExpandTrue 0.012
testWhatHappensIfWeOnlySpecifyMaxWidth 0.006
testAlsoWorksWithOblongImages 0.01
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.033

CoordsTest

testThrowsExceptionWhenCalculatingWidthAndHeightWithInvalidCoordinates 0
testCalculatesWidthAndHeightProperly 0

CropAndResizeQualityTest

testPngNeedsAnEyeToCheck 0.24
testJpgNeedsAnEyeToCheck 0.081

MultiStepResizerTest

testJpgNeedsAnEyeToCheck 0.235

SelectedCropAndResizeTest

testCanDecodeLegacyCropInfoStrings 0.045

ImageOperationChainTest

testBlankAndWood 0.301
testSomeTransformations 0.463

AbstractLoaderTest

testBufferedImageFromPngWithAlpha 0.432
testTransparencyOfIndexedImageIsNotLost 0.301
testBufferedImageFromBmp 0.305
testBufferedImageFromGif 0.347
testBufferedImageFromJpg 0.342
testBufferedImageFromPng 0.346
testBackgroundColor 0.309

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.274
testNodeHasBinaryNode 0.205

FromContentTest

testUnexistingPropertyYieldsAProperException 0.217
testNonBinaryPropertyYieldsAProperException 0.204

FromNodeDataTest

testNonBinaryPropertyYieldsAProperException 0.224

OutputFormatTest

testCompressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
testCompressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenFalse 0
testQualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenTrue 0

BinaryNodeIdentifierParameterProviderFactoryTest

testPathInfoSplitting 0.197

BinaryNodeParameterProviderFactoryTest

testPathInfoSplitting 0.218

ContentParameterProviderFactoryRepositoryTest

testWrapsContentSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.183

ContentParameterProviderFactoryTest

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

NodeDataParameterProviderFactoryTest

testExistingPropertyJustWorks 0.186
testWrapsNodeDataSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.182
testReturnsWrappedNonExistingNodeDataIfPropertyDoesNotExist 0.176
testYieldsAProperExceptionIfGeneratorNameIsOmmitted 0.208

SelfTest

testCanGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.214
testNodeParameterProviderHandlesTimestampsProperly 0.294

ImagingModuleVersionHandlerTest

testCleanInstallAddsPermissionsForImagingBaseRole 0.474
updateTo32InstallsTemplatingFunctions 0.355
cleanInstall 0.34
testUpdateFrom31AddsPermissionsForImagingBaseRole 0.281
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.284
updateTo32InstallsNewDefaultImageGenerator 0.262
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.296
updateTo32ExcludesImagingFromFlushCache 0.273

ColorConverterTest

testCanDecodeHexa 0
testFailsOnUnknownName 0
testCanDecodeNames 0

ImageUtilTest

testPerformance 0.001
testCanHandleTransparentPNGSourceWhenFlatteningForJPEG 0.008
testCanHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.01
testJpegOddity 0.017
testCanHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.007
testCanHandleTransparentGIFSourceWhenFlatteningForJPEG 0.006
testDecodingHuffmanImage 0.025
testGetImageTypeIndexedTypeWithoutAlpha 0.015
testGetOriginalImageType 0.003
testCanHandleImageCreatedByBlankOperationWithBackgroundColor 0.007
testGetImageTypeIndexedTypeWithAlpha 0.004
testCanHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.007
testCanHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.02
testLoadingPerformance 0.446
testCanHandleOpaquePNGSourceWhenFlatteningForJPEG 0.014

PathSplitterTest

testExtensionCanBeKeptAndIsNotCountingAsAnElement 0
testNullsAreHandledGracefullyCauseWeAreThatNice 0
testDotsInPathNotAtTheEndAreNotTrimmed 0
testDotsInPathOnlyOneToSplitTrimExtension 0
testDotsInNames 0
testLeadingAndTralingslahesAreIgnored 0
testEmptyStringYieldsNoResults 0
testTrimExtensionProperly 0
testRemainingCanBeCalledEvenIfWeAlreadyReachedTheLastElement 0
testEmptyElementsBeforeTrailingSlashWorkToo 0.001
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]


testConcurrencyAndJCRSessions
skipped: skipped