Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
102 0 0 0 100% 20.25 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
com.swe.nonsense 102 0 0 0 100% 20.25 s

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

com.swe.nonsense

- Class Tests Errors Failures Skipped Success Rate Time
WordTest 7 0 0 0 100% 0.021 s
ToxicityAnalyzerTest 2 0 0 0 100% 0.877 s
ApplicationControllerTest 11 0 0 0 100% 6.638 s
SentenceHistoryTest 7 0 0 0 100% 0.017 s
SyntaxNodeTest 7 0 0 0 100% 0.009 s
TemplateTest 4 0 0 0 100% 0.006 s
ModerationCategoryTest 4 0 0 0 100% 0.005 s
SentenceTest 11 0 0 0 100% 0.046 s
NonSenseGeneratorApplicationTests 1 0 0 0 100% 3.222 s
ModerationResultTest 5 0 0 0 100% 0.014 s
StorageManagerTest 4 0 0 0 100% 0.094 s
SyntaxAnalyzerTest 7 0 0 0 100% 4.999 s
SyntaxTreeTest 4 0 0 0 100% 0.020 s
WordsDictionaryTest 14 0 0 0 100% 0.043 s
SentenceGeneratorTest 6 0 0 0 100% 3.376 s
APIClientTest 2 0 0 0 100% 0.856 s
VerbTest 6 0 0 0 100% 0.010 s

Test Cases

[Summary] [Package List] [Test Cases]

WordTest

testWordCreation 0.001 s
testAdjectiveCreation 0.001 s
testGetText 0.001 s
testNounCreation 0.001 s
testWordCreationNoText 0.003 s
testEquals 0.003 s
testSetText 0.001 s

ToxicityAnalyzerTest

testAnalyzeToxicity 0.867 s
testConstructor 0.008 s

ApplicationControllerTest

testGenerateNonSenseSentencePlaceholderReplacementTypes 1.637 s
testGetSyntaxTreeFromString 0.877 s
testGetTemplates 0.007 s
testSaveAndGetLastSentences 0.010 s
testGetSentenceToxicity 0.862 s
testAddTermsToDictionaryFromInput 0.022 s
testGenerateNonSenseSentenceNoPlaceholders 1.566 s
testGetSentenceToxicityInvalid 0.010 s
testGenerateNonSenseSentenceBasic 1.622 s
testGetLastSentencesInvalid 0.007 s
testAddTermsToDictionaryFromInputInvalid 0.008 s

SentenceHistoryTest

testSaveOneSentence 0.003 s
testSaveMoreSentences 0.001 s
testGetLastSentence 0.001 s
testGetSentences 0.001 s
testConstructorWithSavedSentences 0.001 s
testGetInstance 0.001 s
testDefaultConstructor 0.001 s

SyntaxNodeTest

testSetChildren 0 s
testGetChildren 0.001 s
testAddChild 0 s
testGetWord 0 s
testGetDependencyLabel 0 s
testSetDependencyLabel 0 s
testSetWord 0.001 s

TemplateTest

testConstructorWithText 0.001 s
testConstructorNoText 0.001 s
testSetTemplate 0.001 s
testGetTemplate 0 s

ModerationCategoryTest

testGetConfidence 0 s
testSetConfidence 0.001 s
testGetName 0 s
testSetName 0 s

SentenceTest

testSetGenerationDate 0.001 s
testToString 0.005 s
testGetText 0.001 s
testGetGenerationDate 0.002 s
testGetRandomAdjective 0.001 s
testConstructorWithString 0.001 s
testConstructorWithWords 0.003 s
testEquals 0.003 s
testGetRandomNoun 0.001 s
testGetRandomVerb 0.003 s
testDefaultConstructor 0.003 s

NonSenseGeneratorApplicationTests

contextLoads 0.816 s

ModerationResultTest

testGetCategoryByName 0.003 s
testGetCategories 0.001 s
testSetCategories 0.002 s
testConstructorWithCategories 0.002 s
testDefaultConstructor 0.001 s

StorageManagerTest

testLoadHistory 0.021 s
testLoadDictionary 0.018 s
testSaveHistory 0.035 s
testSaveDictionary 0.013 s

SyntaxAnalyzerTest

testPhoneNodeStructureAndChildren 0.897 s
testRootNodeProperties 0.871 s
testEventSubTreeStructure 0.856 s
testRootChildrenExistenceAndTypes 0.320 s
testEmptySyntaxTree 0.890 s
testGoogleNodeStructure 0.854 s
testLocationSubTreeStructure 0.305 s

SyntaxTreeTest

testConstructorAndGetRoots 0.001 s
testAddRoot 0.003 s
testGetAllNodes 0.004 s
testSetRoots 0.001 s

WordsDictionaryTest

testGetRandomTemplate 0.001 s
testGetNouns 0.001 s
testGetVerbs 0.002 s
testGetTemplates 0.004 s
testGetRandomVerbWithTense 0.001 s
testGetRandomAdjective 0.001 s
testClearAllData 0.001 s
testConstructorWithSavedWords 0.002 s
testSaveTerms 0.003 s
testGetRandomNoun 0.002 s
testGetRandomVerb 0.001 s
testGetAdjectives 0.001 s
testSaveTemplates 0.001 s
testGetInstance 0.001 s

SentenceGeneratorTest

testGenerateSentence_noAdjectives 1.249 s
testGenerateSentence_noNouns 0.010 s
testGenerateSentence_noVerbs 0.898 s
testGenerateRandomSentence_validTense 0.901 s
testGenerateSentence_validTemplateAndTense 0.302 s
testConstructor 0.008 s

APIClientTest

get 0.307 s
post 0.544 s

VerbTest

testGetTense 0.001 s
testVerbConstructor 0.001 s
testGetText 0.001 s
testSetText 0.001 s
testVerbConstructorNoText 0.001 s
testSetTense 0.001 s