Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
63 0 0 0 100% 0.699

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
de.smartics.util.adapt 3 0 0 0 100% 0.048
de.smartics.util.lang 42 0 0 0 100% 0.03
de.smartics.util.lang.classpath 14 0 0 0 100% 0.483
de.smartics.util.io 4 0 0 0 100% 0.138

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

de.smartics.util.adapt

Class Tests Errors Failures Skipped Success Rate Time
AdaptableExceptionSerializableTest 1 0 0 0 100% 0.046
AdaptableExceptionTest 2 0 0 0 100% 0.002

de.smartics.util.lang

Class Tests Errors Failures Skipped Success Rate Time
ArgTest 9 0 0 0 100% 0.005
BlankArgumentExceptionSerializableTest 1 0 0 0 100% 0.012
BlankArgumentExceptionTest 3 0 0 0 100% 0.001
NullArgumentExceptionSerializableTest 1 0 0 0 100% 0.006
NullArgumentExceptionTest 3 0 0 0 100% 0
StringFunctionChopTest 10 0 0 0 100% 0.003
StringFunctionIsLastCharTest 6 0 0 0 100% 0.001
StringFunctionTest 1 0 0 0 100% 0
StringFunctionToHyphenVersionTest 8 0 0 0 100% 0.002

de.smartics.util.lang.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClassPathContextObjectBasicsTest 9 0 0 0 100% 0.472
ClassPathDirectoryListingTest 5 0 0 0 100% 0.011

de.smartics.util.io

Class Tests Errors Failures Skipped Success Rate Time
FileFunctionTest 4 0 0 0 100% 0.138

Test Cases

[Summary] [Package List] [Test Cases]

AdaptableExceptionSerializableTest

isSerializable 0.046

AdaptableExceptionTest

allowsCreationWithoutRootCause 0.002
allowsCreationWithoutAnyTypeInformation 0

FileFunctionTest

coverageTestPrivateConstructor 0.126
writesToFile 0.007
throwsExceptionIfInputStreamIsNull 0.003
throwsExceptionIfFileIsNull 0.002

ArgTest

rejectsNullValueWithNullPointerException 0.001
acceptsNonNullValue 0
allowsToPassAnOptionalMessageForNullCheck 0.001
allowsToPassAnOptionalMessageForNullCheckEvenIfNoExceptionIsThrown 0
rejectsBlankValueWithNullPointerException 0.001
acceptsNonBlankValue 0
allowsToPassAnOptionalMessageForBlankCheck 0.001
allowsToPassAnOptionalMessageForBlankCheckEvenIfNoExceptionIsThrown 0
isAnUtilityClass 0.001

BlankArgumentExceptionSerializableTest

isSerializable 0.012

BlankArgumentExceptionTest

allowsToSpecifyTheNameOfTheMissingArgument 0.001
allowsToLeaveOutTheNameOfTheMissingArgument 0
providesANoargsConstuctorAlthoughItsUseIsDiscouraged 0

ClassPathContextObjectBasicsTest

equalsIsReflexive 0.017
equalsIsSymmetric 0.06
equalsIsTransitive 0.286
equalsIsConsistent 0.03
equalsReturnFalseOnNull 0.004
hashCodeIsConsistent 0.005
hashCodeIsConsistentWithEquals 0.038
hashCodeProducesUnequalHashCodesForUnequalInstances 0.029
toStringRunsWithoutFailure 0.003

ClassPathDirectoryListingTest

readsFilesFromTheFileSystem 0.004
readsFilesFromAJarArchive 0.005
readsFromJarRoot 0.001
doesNotAllowNullAsResourcePath 0.001
throwsIllegalArgumentExceptionIfResourceNotFoundOnClassPath 0

NullArgumentExceptionSerializableTest

isSerializable 0.006

NullArgumentExceptionTest

allowsToSpecifyTheNameOfTheMissingArgument 0
allowsToLeaveOutTheNameOfTheMissingArgument 0
providesANoargsConstuctorAlthoughItsUseIsDiscouraged 0

StringFunctionChopTest

returnsNullIfNullIsPassedAsArgument 0.001
returnsTheEmptyStringIfTheEmptyStringIsPassedAsArgument 0
chopsTheLastCharacterIfThereIsOne 0
chopsTheLastCharacterIfNotEmpty 0.001
chopsCarrigeReturnNewLineAsOneCharacter 0
chopsCarrigeReturnWithoutNewLineAsOneChar 0
chopsCarrigeReturnNewLineAsOneCharacterIfTheyAreTheOnlyChars 0
handlesASingleNewlineCorrectly 0
handlesLengthGreaterOneAndNewlineCorrectly 0.001
handlesASingleCarrigeReturnCorrectly 0

StringFunctionIsLastCharTest

noCharacterIsTheLastCharOfTheNullString 0
noCharacterIsTheLastCharOfTheEmptyString 0
theLastCharOfAOneCharacterStringMatches 0.001
theLastCharOfAOneCharacterStringThatDoesNotMatch 0
theLastCharOfAStringThatMatches 0
theLastCharOfAStringThatDoesNotMatch 0

StringFunctionTest

runPrivateConstructorForFullTestCoverage 0

StringFunctionToHyphenVersionTest

returnsNullIfNullIsPassedAsArgument 0
returnsTheEmptyStringIfTheEmptyStringIsPassedAsArgument 0
hyphenVersionOfAllLowerCaseInputIsUnmodified 0
hyphenVersionOfFistLetterCapitalIsTransformedToAllLowerCase 0
alsoWorksOnASingleLowerCaseLetter 0.001
alsoWorksOnASingleCapitalLetter 0
hyphensACapitalLetter 0
hyphensMultipleCapitalLetter 0.001