Gradle Test Run :test

TagApplierTest

summary

17

tests

0

failures

0

skipped

0.035s

duration

100%

successful

Child Name Tests Failures Skipped Duration Success rate
annotationsAdded equals the sum of displayNamesAdded and tagsAdded annotationsAddedEqualsSumOfDisplayNamesAndTags() 1 0 0 0.002s 100%
blank displayName in suggestion is skipped without adding @DisplayName blankDisplayNameSkipped() 1 0 0 0.002s 100%
ClassResult.modified() returns false when annotationsAdded is zero classResultModifiedFalseWhenZeroAdded() 1 0 0 0.001s 100%
ClassResult.modified() returns true when annotationsAdded is non-zero classResultModifiedTrueWhenNonZero() 1 0 0 0.001s 100%
@DisplayName and @Tag added for security-relevant method suggestion displayNameAddedForSecurityRelevantMethod() 1 0 0 0.004s 100%
@DisplayName not added when method already has @DisplayName annotation displayNameNotAddedWhenAlreadyPresent() 1 0 0 0.002s 100%
duplicate tag in suggestion list is added only once duplicateTagInSuggestionAddedOnlyOnce() 1 0 0 0.002s 100%
IMPORT_DISPLAY_NAME and IMPORT_TAG constants have correct fully-qualified values importConstantsAreCorrect() 1 0 0 0.001s 100%
inner class methods are not processed when applying to outer class innerClassMethodsNotProcessedByOuterClassIteration() 1 0 0 0.002s 100%
multiple tags from suggestion are all added to the method multipleTagsAdded() 1 0 0 0.002s 100%
no annotations added when suggestion marks method as not security relevant noAnnotationsAddedWhenNotSecurityRelevant() 1 0 0 0.002s 100%
no annotations added when suggestion lookup is null (class-level null suggestion) noAnnotationsAddedWhenSuggestionIsNull() 1 0 0 0.001s 100%
null and blank tag values in suggestion are ignored nullAndBlankTagsIgnored() 1 0 0 0.002s 100%
null displayName in suggestion is skipped without adding @DisplayName nullDisplayNameSkipped() 1 0 0 0.001s 100%
null tags list in AiMethodSuggestion adds no @Tag annotations nullTagListInSuggestion_addsNoTags() 1 0 0 0.001s 100%
suggestion for non-test helper method does not add any annotations onlyTestMethodsAnnotated() 1 0 0 0.002s 100%
@Tag not added when the tag value already exists on the method tagNotAddedWhenAlreadyPresent() 1 0 0 0.002s 100%