Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
143 0 0 2 98.601% 13.793

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.439
info.magnolia.imaging.setup 8 0 0 0 100% 2.45
info.magnolia.imaging.operations.load 12 0 0 0 100% 3.397
info.magnolia.imaging.operations 2 0 0 0 100% 0.721
info.magnolia.imaging.functions 11 0 0 0 100% 0.073
info.magnolia.imaging.parameters 16 0 0 0 100% 1.324
info.magnolia.imaging.util 36 0 0 0 100% 0.546
info.magnolia.imaging.caching 6 0 0 2 66.667% 3.397
info.magnolia.imaging 18 0 0 0 100% 0.441

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.519
BoundedResizeTest 9 0 0 0 100% 0.336
CoordsTest 2 0 0 0 100% 0
CropAndResizeQualityTest 2 0 0 0 100% 0.318
MultiStepResizerTest 1 0 0 0 100% 0.226
SelectedCropAndResizeTest 1 0 0 0 100% 0.04

info.magnolia.imaging.setup

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

info.magnolia.imaging.operations.load

Class Tests Errors Failures Skipped Success Rate Time
AbstractLoaderTest 7 0 0 0 100% 2.407
FromBinaryNodeTest 2 0 0 0 100% 0.388
FromContentTest 2 0 0 0 100% 0.416
FromNodeDataTest 1 0 0 0 100% 0.186

info.magnolia.imaging.operations

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

info.magnolia.imaging.functions

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

info.magnolia.imaging.parameters

Class Tests Errors Failures Skipped Success Rate Time
BinaryNodeIdentifierParameterProviderFactoryTest 1 0 0 0 100% 0.177
BinaryNodeParameterProviderFactoryTest 1 0 0 0 100% 0.191
ContentParameterProviderFactoryRepositoryTest 1 0 0 0 100% 0.211
ContentParameterProviderFactoryTest 9 0 0 0 100% 0.029
NodeDataParameterProviderFactoryTest 4 0 0 0 100% 0.716

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

info.magnolia.imaging.caching

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

info.magnolia.imaging

Class Tests Errors Failures Skipped Success Rate Time
DefaultImageGeneratorTest 2 0 0 0 100% 0.008
DefaultImagingSupportTest 4 0 0 0 100% 0.001
ImagingModuleTest 2 0 0 0 100% 0.006
ImagingServletTest 3 0 0 0 100% 0.015
OutputFormatTest 5 0 0 0 100% 0
SelfTest 2 0 0 0 100% 0.411

Test Cases

[Summary] [Package List] [Test Cases]

AbstractContentBasedCachingStrategyTest

testSelfSanity 0.004

CachingImageStreamerRepositoryTest

makeSureMIMETypeIsCorrectlyPersisted 2.312
shouldStoreNothingWhenUsingNullCachingStrategy 0
skipped
testGenerateAndStoreIsDoneUnderSystemContext 0.608
testConcurrencyAndJCRSessions 0
skipped
testRequestForSimilarUncachedImageOnlyGeneratesItOnce 0.473

DefaultImageGeneratorTest

fallbackToJpgIfNoExtensionExists 0.006
extensionIsTakenIntoAccountWhenObtainingOutputFormat 0.002

DefaultImagingSupportTest

createLinkForVariationWithExtensionSet 0
createLinkForNonExistingVariationDefaultsToOriginalImage 0
createLinkForOriginalVariation 0.001
createLinkForNullVariationDefaultsToOriginalImage 0

ImagingTemplatingFunctionsTest

getImageVariationLinkFromBinaryWhenException 0.06
getImageVariationLinkFromBinaryAndTemplateDefinitionWithoutParameter 0.004
getImageVariationLinkFromBinaryContentMap 0.003
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionContentMap 0.001
getImageVariationLinkFromBinary 0.001
getImageVariationLinkFromBinaryEscapedText 0.002
getImageVariationLinkFromBinaryContentMapWhenNull 0
getImageVariationLinkFromBinaryAndTemplateDefinitionWhenNull 0.001
getImageVariationLinkFromBinaryAndTemplateDefinition 0.001
getImageVariationLinkFromBinaryWhenNull 0

ImagingModuleTest

testModuleStartRegistersSpiProviders 0.005
testModuleStopUnRegistersSpiProviders 0.001

ImagingServletTest

testGetCorrectMimeType 0.012
testRequestToFactoryToGeneratorToImage 0.002
testDoGetWrongExtension 0.001

AutoCropAndResizeTest

testDoesNotCropIfOnlyTargetHeightIsSpecifiedAndRespectsOriginalRatio 0.119
testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.025
testSquareTargetUsesLargestPossibleZoneForVerticalSourceToo 0.088
testThereWereVerticalBlackBordersToo 0.035
testVerticalRatiosAlsoWork 0.028
testNoResizeIfWidthAndHeightAreNotSpecified 0.01
testSquareTargetUsesLargestPossibleZoneForHorizontalSource 0.028
testResizesUsingBothWidthAndHeightIfSpecified 0.007
testDoesNotCropIfOnlyTargetWidthIsSpecifiedAndRespectsOriginalRatio 0.022
testResizesProportionallyIfOnlyWidthIsSpecified 0.006
testResizesProportionallyIfOnlyHeightIsSpecified 0.008
testVerticalSourceWithVerticalRatioIsAlsoSwell 0.048
testVerticalSourceIsHandledJustAsWell 0.065
testPhilippSawBlackBorders 0.007
testRespectsRatioOfTargetSizeIfCroppingIsNeededAndCropFromTheCenter 0.023

BoundedResizeTest

testJustResizeIfTargetRatioIsEquivalentToSourceRatio 0.022
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForSquareSourceToo 0.041
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimensionForVerticalSourceToo 0.203
testSmallImageNotEnlargedWhileExpandFalse 0.008
testAnotherOblongCase 0.007
testSmallImageIsEnlargedWhileExpandTrue 0.012
testWhatHappensIfWeOnlySpecifyMaxWidth 0.005
testAlsoWorksWithOblongImages 0.009
testKeepsOriginalRatioAndCompliesToSmallestMaximumDimension 0.029

CoordsTest

testThrowsExceptionWhenCalculatingWidthAndHeightWithInvalidCoordinates 0
testCalculatesWidthAndHeightProperly 0

CropAndResizeQualityTest

testPngNeedsAnEyeToCheck 0.236
testJpgNeedsAnEyeToCheck 0.082

MultiStepResizerTest

testJpgNeedsAnEyeToCheck 0.226

SelectedCropAndResizeTest

testCanDecodeLegacyCropInfoStrings 0.04

ImageOperationChainTest

testBlankAndWood 0.301
testSomeTransformations 0.42

AbstractLoaderTest

testBufferedImageFromPngWithAlpha 0.403
testTransparencyOfIndexedImageIsNotLost 0.313
testBufferedImageFromBmp 0.317
testBufferedImageFromGif 0.391
testBufferedImageFromJpg 0.397
testBufferedImageFromPng 0.324
testBackgroundColor 0.262

FromBinaryNodeTest

testNodeHasNoBinaryNode 0.199
testNodeHasBinaryNode 0.189

FromContentTest

testUnexistingPropertyYieldsAProperException 0.232
testNonBinaryPropertyYieldsAProperException 0.184

FromNodeDataTest

testNonBinaryPropertyYieldsAProperException 0.186

OutputFormatTest

testCompressionSettingsAreNotResetWhenBothTypeAndQualityAreApplied 0
testCompressionTypeIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenFalse 0
testQualityIsProperlyConvertedToOneZeroRangeAndSetsCompressionModeToExplicit 0
testProgressiveFlagIsSetProperlyWhenTrue 0

BinaryNodeIdentifierParameterProviderFactoryTest

testPathInfoSplitting 0.177

BinaryNodeParameterProviderFactoryTest

testPathInfoSplitting 0.191

ContentParameterProviderFactoryRepositoryTest

testWrapsContentSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.211

ContentParameterProviderFactoryTest

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

NodeDataParameterProviderFactoryTest

testExistingPropertyJustWorks 0.225
testWrapsNodeDataSuchThatEqualsAndHashCodeAreImplementedBasedOnPathAndHierarchyManagerName 0.163
testReturnsWrappedNonExistingNodeDataIfPropertyDoesNotExist 0.166
testYieldsAProperExceptionIfGeneratorNameIsOmmitted 0.162

SelfTest

testCanGetBinaryStreamOutOfTheSamePropertyInstanceTwice 0.17
testNodeParameterProviderHandlesTimestampsProperly 0.241

ImagingModuleVersionHandlerTest

testCleanInstallAddsPermissionsForImagingBaseRole 0.501
updateTo32InstallsTemplatingFunctions 0.347
cleanInstall 0.301
testUpdateFrom31AddsPermissionsForImagingBaseRole 0.26
updateTo32RegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.257
updateTo32InstallsNewDefaultImageGenerator 0.245
installationRegistersImagingTemplatingFunctionsAsFreemarkerRendererCtxAttribute 0.278
updateTo32ExcludesImagingFromFlushCache 0.261

ColorConverterTest

testCanDecodeHexa 0
testFailsOnUnknownName 0
testCanDecodeNames 0

ImageUtilTest

testPerformance 0.002
testCanHandleTransparentPNGSourceWhenFlatteningForJPEG 0.006
testCanHandleOpaqueGIFSourceWhenFlatteningForJPEG 0.008
testJpegOddity 0.015
testCanHandleImageCreatedByBlankOperationWithoutBackgroundColor 0.006
testCanHandleTransparentGIFSourceWhenFlatteningForJPEG 0.006
testDecodingHuffmanImage 0.027
testGetImageTypeIndexedTypeWithoutAlpha 0.015
testGetOriginalImageType 0.003
testCanHandleImageCreatedByBlankOperationWithBackgroundColor 0.006
testGetImageTypeIndexedTypeWithAlpha 0.003
testCanHandleProblematicLogoPNGSourceWhenFlatteningForJPEG 0.005
testCanHandleTranslucentPNGSourceWhenFlatteningForJPEG 0.018
testLoadingPerformance 0.413
testCanHandleOpaquePNGSourceWhenFlatteningForJPEG 0.013

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

DefaultVariationTest

defaultVariationReturnsLinkToParent 0.003
defaultVariationReturnsLinkToParentWithExtension 0
variationReturnsNullWhenBinaryIsNull 0.001
defaultVariationReturnsNullWhenException 0.001

Failure Details

[Summary] [Package List] [Test Cases]


shouldStoreNothingWhenUsingNullCachingStrategy
skipped: skipped
testConcurrencyAndJCRSessions
skipped: skipped