Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
64 0 0 0 100% 0.531

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.004
de.smartics.util.lang 42 0 0 0 100% 0.016
de.smartics.util.lang.classpath 15 0 0 0 100% 0.49
de.smartics.util.io 4 0 0 0 100% 0.021

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
AdaptableExceptionTest 2 0 0 0 100% 0
AdaptableExceptionSerializableTest 1 0 0 0 100% 0.004

de.smartics.util.lang

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

de.smartics.util.lang.classpath

Class Tests Errors Failures Skipped Success Rate Time
ClassPathContextObjectBasicsTest 10 0 0 0 100% 0.489
ClassPathDirectoryListingTest 5 0 0 0 100% 0.001

de.smartics.util.io

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

Test Cases

[Summary] [Package List] [Test Cases]

StringFunctionChopTest

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

FileFunctionTest

coverageTestPrivateConstructor 0.013
writesToFile 0.007
throwsExceptionIfInputStreamIsNull 0.001
throwsExceptionIfFileIsNull 0

ArgTest

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

NullArgumentExceptionTest

allowsToSpecifyTheNameOfTheMissingArgument 0
allowsToLeaveOutTheNameOfTheMissingArgument 0
providesANoargsConstuctorAlthoughItsUseIsDiscouraged 0

AdaptableExceptionTest

allowsCreationWithoutRootCause 0
allowsCreationWithoutAnyTypeInformation 0

NullArgumentExceptionSerializableTest

isSerializable 0.01

ClassPathContextObjectBasicsTest

equalsIsReflexive 0.016
equalsIsSymmetric 0.063
equalsIsTransitive 0.32
equalsIsConsistent 0.038
equalsReturnFalseOnNull 0.005
equalsReturnFalseOnInstanceOfOtherType 0.005
hashCodeIsConsistent 0.004
hashCodeIsConsistentWithEquals 0.022
hashCodeProducesUnequalHashCodesForUnequalInstances 0.016
toStringRunsWithoutFailure 0

StringFunctionTest

runPrivateConstructorForFullTestCoverage 0

StringFunctionIsLastCharTest

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

ClassPathDirectoryListingTest

readsFilesFromTheFileSystem 0
readsFilesFromAJarArchive 0
readsFromJarRoot 0.001
doesNotAllowNullAsResourcePath 0
throwsIllegalArgumentExceptionIfResourceNotFoundOnClassPath 0

BlankArgumentExceptionSerializableTest

isSerializable 0

StringFunctionToHyphenVersionTest

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

AdaptableExceptionSerializableTest

isSerializable 0.004

BlankArgumentExceptionTest

allowsToSpecifyTheNameOfTheMissingArgument 0
allowsToLeaveOutTheNameOfTheMissingArgument 0
providesANoargsConstuctorAlthoughItsUseIsDiscouraged 0