Summary

Tests Errors Failures Success Rate Time
155 0 0 100.00% 36.94

Note: failures are anticipated and checked for with assertions while errors are unanticipated.

Package List

Package Tests Errors Failures Success Rate Time
com.octo.captcha.sound.speller 3 0 0 100.00% 0.00
com.octo.captcha.image.gimpy 2 0 0 100.00% 0.00
com.octo.captcha.component.image.color 8 0 0 100.00% 0.00
com.octo.captcha.component.image.textpaster 5 0 0 100.00% 0.00
com.octo.captcha.component.image.fontgenerator 12 0 0 100.00% 0.28
com.octo.captcha.service.captchastore 16 0 0 100.00% 0.16
com.octo.captcha.component.image.backgroundgenerator 5 0 0 100.00% 0.20
com.octo.captcha.engine.sound 8 0 0 100.00% 0.00
com.octo.captcha.component.word 7 0 0 100.00% 0.01
com.octo.captcha.sound.spellfind 2 0 0 100.00% 0.03
com.octo.captcha.image 8 0 0 100.00% 0.16
com.octo.captcha.sound 3 0 0 100.00% 0.05
com.octo.captcha.service 34 0 0 100.00% 35.72
com.octo.captcha.component.image.utils 3 0 0 100.00% 0.02
com.octo.captcha.component.word.wordgenerator 9 0 0 100.00% 0.03
com.octo.captcha.image.fisheye 3 0 0 100.00% 0.02
com.octo.captcha.engine.image 8 0 0 100.00% 0.03
com.octo.captcha.component.image.wordtoimage 18 0 0 100.00% 0.24
com.octo.captcha.sound.gimpy 1 0 0 100.00% 0.00

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

com.octo.captcha.sound.speller

Class Tests Errors Failures Success Rate Time
SoundSpellerFactoryTest 1 0 0 100.00% 0.00
SpellerSoundFactoryTest 2 0 0 100.00% 0.00

com.octo.captcha.image.gimpy

Class Tests Errors Failures Success Rate Time
GimpyFactoryTest 2 0 0 100.00% 0.00

com.octo.captcha.component.image.color

Class Tests Errors Failures Success Rate Time
RandomListColorGeneratorTest 3 0 0 100.00% 0.00
RandomRangeColorGeneratorTest 5 0 0 100.00% 0.00

com.octo.captcha.component.image.textpaster

Class Tests Errors Failures Success Rate Time
SimpleTextPasterTest 5 0 0 100.00% 0.00

com.octo.captcha.component.image.fontgenerator

Class Tests Errors Failures Success Rate Time
DeformedRandomFontGeneratorTest 1 0 0 100.00% 0.05
RandomFontGeneratorTest 8 0 0 100.00% 0.16
TwistedAndShearedRandomFontGeneratorTest 2 0 0 100.00% 0.06
TwistedRandomFontGeneratorTest 1 0 0 100.00% 0.01

com.octo.captcha.service.captchastore

Class Tests Errors Failures Success Rate Time
FastHashMapCaptchaStoreTest 8 0 0 100.00% 0.11
MapCaptchaStoreTest 8 0 0 100.00% 0.05

com.octo.captcha.component.image.backgroundgenerator

Class Tests Errors Failures Success Rate Time
FileReaderRandomBackgroundGeneratorTest 5 0 0 100.00% 0.20

com.octo.captcha.engine.sound

Class Tests Errors Failures Success Rate Time
DefaultSoundCaptchaEngineTest 4 0 0 100.00% 0.00
ListSoundCaptchaEngineTest 4 0 0 100.00% 0.00

com.octo.captcha.component.word

Class Tests Errors Failures Success Rate Time
DefaultSizeSortedWordListTest 5 0 0 100.00% 0.00
FileDictionaryTest 2 0 0 100.00% 0.01

com.octo.captcha.sound.spellfind

Class Tests Errors Failures Success Rate Time
SpellFindCaptchaFactoryTest 2 0 0 100.00% 0.03

com.octo.captcha.image

Class Tests Errors Failures Success Rate Time
ImageCaptchaTest 8 0 0 100.00% 0.16

com.octo.captcha.sound

Class Tests Errors Failures Success Rate Time
SoundCaptchaTest 3 0 0 100.00% 0.05

com.octo.captcha.service

Class Tests Errors Failures Success Rate Time
RunableAbstractCaptchaServiceTest 7 0 0 100.00% 0.14
RunableAbstractManageableCaptchaServiceTest 27 0 0 100.00% 35.58

com.octo.captcha.component.image.utils

Class Tests Errors Failures Success Rate Time
ToolkitFactoryTest 3 0 0 100.00% 0.02

com.octo.captcha.component.word.wordgenerator

Class Tests Errors Failures Success Rate Time
ComposeDictionaryWordGeneratorTest 3 0 0 100.00% 0.02
DictionaryWordGeneratorTest 2 0 0 100.00% 0.00
DummyWordGeneratorTest 3 0 0 100.00% 0.00
RandomWordGeneratorTest 1 0 0 100.00% 0.02

com.octo.captcha.image.fisheye

Class Tests Errors Failures Success Rate Time
FishEyeFactoryTest 1 0 0 100.00% 0.02
FishEyeTest 2 0 0 100.00% 0.00

com.octo.captcha.engine.image

Class Tests Errors Failures Success Rate Time
DefaultImageCaptchaEngineTest 4 0 0 100.00% 0.03
ListImageCaptchaEngineTest 4 0 0 100.00% 0.00

com.octo.captcha.component.image.wordtoimage

Class Tests Errors Failures Success Rate Time
ComposedWordToImageTest 7 0 0 100.00% 0.05
DeformedComposedWordToImageTest 2 0 0 100.00% 0.17
SimpleWordToImageTest 9 0 0 100.00% 0.02

com.octo.captcha.sound.gimpy

Class Tests Errors Failures Success Rate Time
SoundGimpyFactoryTest 1 0 0 100.00% 0.00

Test Cases

FileReaderRandomBackgroundGeneratorTest

testFindDirectoryNotExisting 0.05
testFindDirectoryClasspathDir 0.05
testFindDirectoryClasspathEmptyDir 0.02
testCtorEmptyImageDir 0.03
testGetBackground 0.06

RandomListColorGeneratorTest

testNominalCase 0.00
testNullColor 0.00
testSingleColor 0.00

RandomRangeColorGeneratorTest

testNominalCase 0.00
testNominalCaseWithoutAlpha 0.00
testRangeError 0.00
testRangeValueError 0.00
testClosedRange 0.00

DeformedRandomFontGeneratorTest

testGetFont 0.05

RandomFontGeneratorTest

testGetFont 0.02
testGetFontWithList 0.00
testGetFontWithEmptyList 0.01
testGetFontWithBadFontList 0.00
testGetFontWithBadFontPrefix 0.02
testGetFontWithEmptyBadFontPrefix 0.08
testMinFontSize 0.00
testMaxFontSize 0.02

TwistedAndShearedRandomFontGeneratorTest

testGetFont 0.05
testGet10000Font 0.02

TwistedRandomFontGeneratorTest

testGetFont 0.01

SimpleTextPasterTest

testPasteText 0.00
testGetMaxAcceptedWordLenght 0.00
testGetMinAcceptedWordLenght 0.00
testGetMaxAcceptedWordLength 0.00
testGetMinAcceptedWordLength 0.00

ToolkitFactoryTest

testGetaDefaultToolkit 0.00
testGetCustomToolkit 0.02
testGetBadClassToolkit 0.00

ComposedWordToImageTest

testGetFont 0.00
testGetMaxAcceptedWordLength 0.00
testGetMinAcceptedWordLength 0.02
testGetBackround 0.01
testGetImageHeight 0.00
testGetImageWidth 0.00
testGetMinFontSize 0.02

DeformedComposedWordToImageTest

testGetImage 0.16
testGetImageNull 0.00

SimpleWordToImageTest

testGetFont 0.00
testGetMaxAcceptedWordLenght 0.00
testGetMinAcceptedWordLenght 0.00
testGetMaxAcceptedWordLength 0.00
testGetMinAcceptedWordLength 0.00
testGetBackround 0.00
testGetImageHeight 0.00
testGetImageWidth 0.00
testGetMinFontSize 0.00

DefaultSizeSortedWordListTest

testGetLocale 0.00
testAddWord 0.00
testGetNextWord 0.00
testGetMinWord 0.00
testGetMaxWord 0.00

FileDictionaryTest

testGetWordList 0.00
testGetWordListLocale 0.00

ComposeDictionaryWordGeneratorTest

testGetWordIntegerLocale 0.00
testSmallWordWithOneLetter 0.00
testEmptyDictionnary 0.02

DictionaryWordGeneratorTest

testGetWordIntegerLocale 0.00
testGetWordInteger 0.00

DummyWordGeneratorTest

testGetWordIntegerLocale 0.00
testGetWordInteger 0.00
testGetDefaultWord 0.00

RandomWordGeneratorTest

testGetWord 0.00

DefaultImageCaptchaEngineTest

testNullOrEmptyFactoryImageCaptchaEngineConstructor 0.00
testNullOrEmptySetFactories 0.00
testWrongTypeSetFactories 0.02
testSetFactories 0.00

ListImageCaptchaEngineTest

testNullOrEmptyFactoryImageCaptchaEngineConstructor 0.00
testNullOrEmptySetFactories 0.00
testWrongTypeSetFactories 0.00
testSetFactories 0.00

DefaultSoundCaptchaEngineTest

testNullOrEmptySetFactories 0.00
testWrongTypeSetFactories 0.00
testSetFactories 0.00
testNullOrEmptyFactorySoundCaptchaEngineConstructor 0.00

ListSoundCaptchaEngineTest

testNullOrEmptySetFactories 0.00
testWrongTypeSetFactories 0.00
testSetFactories 0.00
testNullOrEmptyFactorySoundCaptchaEngineConstructor 0.00

FishEyeFactoryTest

testGetImageCaptcha 0.02

FishEyeTest

testValidateResponse 0.00
testValidateResponseTolerance 0.00

GimpyFactoryTest

testGetRandomLength 0.00
testGimpyFactory 0.00

ImageCaptchaTest

testValidateResponse 0.11
testGetQuestion 0.00
testGetChallenge 0.02
testDisposeChallenge 0.00
testGetImageChallenge 0.00
testUnMarshalling 0.02
testUnMarshallingWithGetChallenge 0.01
testUnMarshallingWithDisposedChallenge 0.00

FastHashMapCaptchaStoreTest

testHasCaptcha 0.01
testStoreCaptcha 0.00
testStoreCaptchaAndLocale 0.02
testRemoveCaptcha 0.01
testGetSize 0.02
testGetKeys 0.02
testGetCaptcha 0.00
testEmpty 0.01

MapCaptchaStoreTest

testHasCaptcha 0.00
testStoreCaptcha 0.00
testStoreCaptchaAndLocale 0.01
testRemoveCaptcha 0.00
testGetSize 0.02
testGetKeys 0.01
testGetCaptcha 0.00
testEmpty 0.00

RunableAbstractCaptchaServiceTest

testAbstractCaptchaService 0.00
testGetChallengeForID 0.09
testGetQuestionForID 0.00
testValidateResponseForID 0.02
testGenerateAndStoreCaptcha 0.00
testCaptchaRegenerationWhenNewLocaleIsAsked 0.00
testInitStore 0.00

RunableAbstractManageableCaptchaServiceTest

testIsCaptchaStoreFull 0.00
testAbstractManageableCaptchaService 0.00
testGetCaptchaEngineClass 0.00
testSetCaptchaEngineClass 0.00
testEmptyCaptchaStore 0.00
testGarbageCollectCaptchaStore 3.11
testGetCaptchaStoreMaxSize 0.00
testSetCaptchaStoreMaxSize 0.00
testSetCaptchaStoreSizeBeforeGarbageCollection 0.00
testGetCaptchaStoreSizeBeforeGarbageCollection 0.00
testGetNumberOfGarbageCollectedCaptcha 9.31
testGetNumberOfGarbageCollectableCaptchas 12.41
testGetCaptchaStoreSize 0.00
testGetNumberOfUncorrectResponses 0.01
testGetNumberOfCorrectResponses 0.00
testGetNumberOfGeneratedCaptchas 0.02
testSetMinGuarantedStorageDelayInSeconds 0.02
testGetMinGuarantedStorageDelayInSeconds 0.00
testAutomaticGarbaging 8.20
testMaxStoreSizeConstraint 2.45
testAbstractCaptchaService 0.00
testGetChallengeForID 0.01
testGetQuestionForID 0.00
testValidateResponseForID 0.00
testGenerateAndStoreCaptcha 0.02
testCaptchaRegenerationWhenNewLocaleIsAsked 0.00
testInitStore 0.00

SoundGimpyFactoryTest

testGimpyFactory 0.00

SoundCaptchaTest

testGetQuestion 0.02
testGetChallenge 0.00
testGetAudioChallenge 0.00

SoundSpellerFactoryTest

testSpellerSoundFactory 0.00

SpellerSoundFactoryTest

testSpellerSoundFactory 0.00
testGetSoundCaptcha 0.00

SpellFindCaptchaFactoryTest

testSpellerSoundFactory 0.00
testGetSoundCaptcha 0.02