Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
130 0 0 0 100% 3.107 s

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
org.carrot2.util 27 0 0 0 100% 0.254 s
org.carrot2.labs.smartsprites.css 15 0 0 0 100% 0.340 s
org.carrot2.labs.smartsprites 88 0 0 0 100% 2.513 s

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.carrot2.util

- Class Tests Errors Failures Skipped Success Rate Time
BufferedImageUtilsTest 10 0 0 0 100% 0.107 s
ColorQuantizerTest 9 0 0 0 100% 0.141 s
FileUtilsTest 8 0 0 0 100% 0.006 s

org.carrot2.labs.smartsprites.css

- Class Tests Errors Failures Skipped Success Rate Time
CssSyntaxUtilsTest 15 0 0 0 100% 0.340 s

org.carrot2.labs.smartsprites

- Class Tests Errors Failures Skipped Success Rate Time
SmartSpritesParametersTest 10 0 0 0 100% 0.135 s
SpriteBuilderTest 32 0 0 0 100% 2.326 s
SpriteDirectiveOccurrenceCollectorTest 7 0 0 0 100% 0.007 s
SpriteImageDirectiveTest 23 0 0 0 100% 0.022 s
SpriteReferenceDirectiveTest 16 0 0 0 100% 0.023 s

Test Cases

[Summary] [Package List] [Test Cases]

CssSyntaxUtilsTest

testUnpackUrlNoQuotes 0.062 s
testUnpackUrlDoubleQuotes 0.002 s
testMoreRules 0.143 s
testImportantRules 0.005 s
testEmpty 0.004 s
testUnpackUrlSingleQuotes 0.003 s
testWhiteSpace 0.002 s
testColonsInPropertyValue 0.018 s
testShortCssColor 0.027 s
testSingleRule 0.002 s
testMalformedPrefix 0.002 s
testUpperCaseRule 0.001 s
testInvalidCssColor 0.001 s
testLongCssColor 0.002 s
testUnbalancedQuotes 0.002 s

SmartSpritesParametersTest

testValidateRootDirDoesNotExist 0.086 s
testValidateValidAllDirs 0.006 s
testValidateNoRootDirNoCssFiles 0.005 s
testValidateValidOnlyRootDir 0.004 s
testValidateRootDirAndCssFilesWithoutOutputDir 0.004 s
testValidateOutputDirNoRootDir 0.003 s
testValidateDocumentRootDirIsNotADirectory 0.004 s
testValidateDocumentRootDirDoesNotExist 0.005 s
testValidateNoOutputDirAndEmptyCssFileSuffix 0.004 s
testValidateOutputDirIsNotADirectory 0.004 s

SpriteBuilderTest

testIndexedForcedIndexedColor 0.212 s
testIndividualCssFilesWithOutputDir 0.098 s
testNoSpriteDeclarations 0.005 s
testIndexedColor 0.115 s
testIndexedForcedDirectColor 0.131 s
testCssSubfolders 0.100 s
testNonDefaultOutputDir 0.116 s
testSpriteCentering 0.102 s
testSimpleHorizontalSpriteImportant 0.069 s
testRepeatedImageReferences 0.069 s
testMatteColor 0.099 s
testMatteColorForcedIndex 0.115 s
testUnsupportedIndividualImageFormat 0.040 s
testTargetSpriteImageDirNotExists 0.046 s
testAbsoluteImageUrl 0.050 s
testCssOutputDir 0.061 s
testMultipleCssFiles 0.077 s
testScaledSpriteImage 0.043 s
testNoSpriteReferences 0.012 s
testMissingImages 0.053 s
testOverridingCssProperties 0.054 s
testSpriteImageUidSha512 0.074 s
testSpriteMargins 0.125 s
testLayoutPropertiesFromSpriteImageDirective 0.051 s
testUnsupportedSpriteProperties 0.066 s
testIndividualCssFileDoesNotExist 0.002 s
testDirectoryProvidedAsIndividualCssFile 0.003 s
testFractionalScaledSpriteImage 0.045 s
testCssFileApiInvocation 0.051 s
testSimpleHorizontalSprite 0.054 s
testIndividualCssFilesWithoutOutputDir 0.074 s
testLargeRepeat 0.089 s

SpriteDirectiveOccurrenceCollectorTest

testSpriteReferenceDirectiveExtraction 0.001 s
testSpriteReferenceImageUrlExtractionMoreRules 0 s
testSpriteReferenceImageUrlExtraction 0 s
testSpriteImageDirectiveExtractionOneDirectiveComplex 0 s
testSpriteReferenceImageUrlExtractionNoBackgroundImage 0 s
testSpriteImageDirectiveExtractionOneDirectiveSimple 0.001 s
testSpriteImageDirectiveExtractionMoreDirectives 0 s

SpriteImageDirectiveTest

testUnsupportedProperties 0.001 s
testEmpty 0 s
testNoUrl 0 s
testNoId 0.001 s
testMatteColor 0.001 s
testSpriteLayoutProperties 0.001 s
testUnsupportedSpriteImageFormat 0.001 s
testUidSha512 0.001 s
variablesCorrectSyntax 0 s
testUidDate 0.001 s
testUidNone 0 s
testUnrecognizedFormat 0 s
testIdUrlProvided 0.001 s
variablesEmptyVariable 0 s
variablesUnsupportedVariable 0 s
testUidUnknown 0.001 s
variablesUnbalancedBrackets 0 s
testUnsupportedLayout 0.001 s
variablesAndQueryStringCorrectSyntax 0.001 s
testNegativeMarginValues 0.003 s
testSpriteScalingProperty 0.001 s
testLeadingSpaceInUrl 0.001 s
variablesMissingDollar 0 s

SpriteReferenceDirectiveTest

testOverriddenSpriteLayoutFromSpriteImageDirective 0.001 s
testSpriteLayoutFromSpriteImageDirective 0.001 s
testSpriteRefOnlyHorizontalImage 0 s
testUnsupportedProperties 0 s
testMismatchedRightAlignment 0.001 s
testSpriteRefNotFound 0.001 s
testEmpty 0.001 s
testUnsupportedAlignment 0.001 s
testCannotParseMargin 0.001 s
testMismatchedTopAlignment 0.001 s
testSpriteMargins 0.001 s
testMismatchedBottomAlignment 0.001 s
testSpriteRefOnly 0.001 s
testMismatchedLeftAlignment 0.001 s
testNegativeMarginValues 0 s
testSpriteRefAlignment 0 s

BufferedImageUtilsTest

testHasAlphaTransparencyBitmask 0.011 s
testCountDistinctColorsGradient 0.016 s
testHasPartialAlphaTransparencyNoTransparency 0.009 s
testCountDistinctColorsNoTransparency 0.009 s
testCountDistinctColorsTransparency 0.010 s
testHasAlphaTransparencyNoTransparency 0.010 s
testHasPartialAlphaTransparencyPartial 0.008 s
testHasPartialAlphaTransparencyBitmask 0.009 s
testCountDistinctColorsTransparencyMatted 0.009 s
testHasAlphaTransparencyPartial 0.010 s

ColorQuantizerTest

testOneColor 0.010 s
testManyColorsQuantize 0.020 s
testFullAlpha 0.007 s
testExactColorsQuantize 0.009 s
testExactColorsReduce 0.009 s
testManyColorsReduce 0.015 s
testCanReduceWithoutDataLoss 0.047 s
testNoAlpha 0.011 s
testBitAlpha 0.007 s

FileUtilsTest

canonicalizeTwoSegmentsNonCanonical 0.001 s
canonicalizeOneSegment 0 s
canonicalizeTwoSegmentsNonCanonicalTrailingSeparator 0 s
canonicalizeTwoSegmentsCanonical 0 s
canonicalizeMoreSegmentsNonCanonical 0.001 s
canonicalizeEmpty 0.001 s
canonicalizeCanonicalStartingWithParent 0.001 s
canonicalizeMoreParents 0 s