Summary

Tests Errors Failures Skipped Success Rate Time
495 0 0 0 100% 46.031

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

Package List

Package Tests Errors Failures Skipped Success Rate Time
org.apache.commons.io.output 43 0 0 0 100% 8.018
org.apache.commons.io.comparator 14 0 0 0 100% 0.656
org.apache.commons.io 342 0 0 0 100% 27.984
org.apache.commons.io.input 57 0 0 0 100% 7.17
org.apache.commons.io.filefilter 39 0 0 0 100% 2.203

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

org.apache.commons.io.output

Class Tests Errors Failures Skipped Success Rate Time
ByteArrayOutputStreamTestCase 1 0 0 0 100% 0
ClosedOutputStreamTest 1 0 0 0 100% 0.016
CloseShieldOutputStreamTest 1 0 0 0 100% 0.016
CountingOutputStreamTest 2 0 0 0 100% 7.563
DeferredFileOutputStreamTest 10 0 0 0 100% 0.016
FileWriterWithEncodingTest 6 0 0 0 100% 0.141
LockableFileWriterTest 7 0 0 0 100% 0.031
NullOutputStreamTest 1 0 0 0 100% 0
NullWriterTest 1 0 0 0 100% 0.203
StringBuilderWriterTest 12 0 0 0 100% 0.016
TeeOutputStreamTest 1 0 0 0 100% 0.016

org.apache.commons.io.comparator

Class Tests Errors Failures Skipped Success Rate Time
DefaultFileComparatorTest 2 0 0 0 100% 0
ExtensionFileComparatorTest 2 0 0 0 100% 0
LastModifiedFileComparatorTest 2 0 0 0 100% 0.61
NameFileComparatorTest 2 0 0 0 100% 0.016
PathFileComparatorTest 2 0 0 0 100% 0.015
SizeFileComparatorTest 4 0 0 0 100% 0.015

org.apache.commons.io

Class Tests Errors Failures Skipped Success Rate Time
CopyUtilsTest 8 0 0 0 100% 0.125
DemuxTestCase 2 0 0 0 100% 0.219
DirectoryWalkerTestCase 14 0 0 0 100% 0.172
EndianUtilsTest 20 0 0 0 100% 0.015
FileCleanerTestCase 9 0 0 0 100% 1.094
FileCleaningTrackerTestCase 9 0 0 0 100% 1
FileDeleteStrategyTestCase 5 0 0 0 100% 0.016
FilenameUtilsTestCase 27 0 0 0 100% 2.422
FilenameUtilsWildcardTestCase 5 0 0 0 100% 0
FileSystemUtilsTestCase 27 0 0 0 100% 0.344
FileUtilsCleanDirectoryTestCase 5 0 0 0 100% 0.047
FileUtilsFileNewerTestCase 5 0 0 0 100% 0.046
FileUtilsListFilesTestCase 2 0 0 0 100% 0.047
FileUtilsTestCase 80 0 0 0 100% 5.703
FileUtilsWaitForTestCase 1 0 0 0 100% 5.328
HexDumpTest 1 0 0 0 100% 0.031
IOCaseTestCase 15 0 0 0 100% 0.031
IOExceptionWithCauseTestCase 2 0 0 0 100% 0.031
IOUtilsCopyTestCase 22 0 0 0 100% 10.532
IOUtilsTestCase 18 0 0 0 100% 0.156
IOUtilsWriteTestCase 53 0 0 0 100% 0.547
LineIteratorTestCase 12 0 0 0 100% 0.078

org.apache.commons.io.input

Class Tests Errors Failures Skipped Success Rate Time
AutoCloseInputStreamTest 4 0 0 0 100% 0.015
CharSequenceReaderTest 7 0 0 0 100% 0.015
ClassLoaderObjectInputStreamTest 1 0 0 0 100% 0
ClosedInputStreamTest 1 0 0 0 100% 0
CloseShieldInputStreamTest 1 0 0 0 100% 0.015
CountingInputStreamTest 10 0 0 0 100% 7.062
NullInputStreamTest 6 0 0 0 100% 0.016
NullReaderTest 6 0 0 0 100% 0.016
SwappedDataInputStreamTest 14 0 0 0 100% 0.016
TeeInputStreamTest 7 0 0 0 100% 0.015

org.apache.commons.io.filefilter

Class Tests Errors Failures Skipped Success Rate Time
AndFileFilterTestCase 5 0 0 0 100% 0
FileFilterTestCase 28 0 0 0 100% 2.172
OrFileFilterTestCase 5 0 0 0 100% 0.015
RegexFileFilterTestCase 1 0 0 0 100% 0.016

Test Cases

DefaultFileComparatorTest

testComparator 0
testReverseComparator 0

ExtensionFileComparatorTest

testComparator 0
testReverseComparator 0

LastModifiedFileComparatorTest

testComparator 0.313
testReverseComparator 0.297

NameFileComparatorTest

testComparator 0
testReverseComparator 0.016

PathFileComparatorTest

testComparator 0
testReverseComparator 0

SizeFileComparatorTest

testNonexistantFile 0.015
testCompareDirectorySizes 0
testComparator 0
testReverseComparator 0

CopyUtilsTest

testCopy_byteArrayToOutputStream 0.015
testCopy_byteArrayToWriter 0
testCopy_inputStreamToOutputStream 0
testCopy_inputStreamToWriter 0
testCopy_readerToOutputStream 0
testCopy_readerToWriter 0.016
testCopy_stringToOutputStream 0
testCopy_stringToWriter 0

DemuxTestCase

testOutputStream 0.11
testInputStream 0.109

DirectoryWalkerTestCase

testFilter 0
testFilterAndLimitA 0
testFilterAndLimitB 0
testFilterAndLimitC 0
testFilterAndLimitD 0.016
testFilterDirAndFile1 0
testFilterDirAndFile2 0.016
testFilterDirAndFile3 0.015
testFilterDirAndFile4 0.032
testLimitToCurrent 0
testMissingStartDirectory 0
testHandleStartDirectoryFalse 0
testCancel 0.046
testMultiThreadCancel 0.047

EndianUtilsTest

testSwapShort 0
testSwapInteger 0
testSwapLong 0
testSwapFloat 0
testSwapDouble 0
testSymmetry 0
testReadSwappedShort 0
testWriteSwappedShort 0
testReadSwappedUnsignedShort 0
testReadSwappedInteger 0
testWriteSwappedInteger 0
testReadSwappedUnsignedInteger 0
testReadSwappedLong 0
testWriteSwappedLong 0
testReadSwappedFloat 0
testWriteSwappedFloat 0
testReadSwappedDouble 0
testWriteSwappedDouble 0
testSymmetryOfLong 0
testUnsignedOverrun 0

FileCleanerTestCase

testFileCleanerFile 0.109
testFileCleanerDirectory 0.094
testFileCleanerDirectory_NullStrategy 0.062
testFileCleanerDirectory_ForceStrategy 0.141
testFileCleanerNull 0
testFileCleanerExitWhenFinishedFirst 0
testFileCleanerExitWhenFinished_NoTrackAfter 0.016
testFileCleanerExitWhenFinished1 0.093
testFileCleanerExitWhenFinished2 0.563

FileCleaningTrackerTestCase

testFileCleanerFile 0.046
testFileCleanerDirectory 0.125
testFileCleanerDirectory_NullStrategy 0.047
testFileCleanerDirectory_ForceStrategy 0.11
testFileCleanerNull 0
testFileCleanerExitWhenFinishedFirst 0
testFileCleanerExitWhenFinished_NoTrackAfter 0
testFileCleanerExitWhenFinished1 0.062
testFileCleanerExitWhenFinished2 0.61

FileDeleteStrategyTestCase

testDeleteNormal 0.016
testDeleteQuietlyNormal 0
testDeleteForce 0
testDeleteNull 0
testToString 0

AndFileFilterTestCase

testAdd 0
testRemove 0
testNoFilters 0
testFilterBuiltUsingConstructor 0
testFilterBuiltUsingAdd 0

FileFilterTestCase

testSuffix 0
testSuffixCaseInsensitive 0.016
testDirectory 0
testFiles 0
testPrefix 0
testPrefixCaseInsensitive 0
testNameFilter 0
testNameFilterNullArgument 0.016
testNameFilterNullArrayArgument 0
testNameFilterNullListArgument 0
testTrue 0
testFalse 0
testNot 0
testAnd 0
testOr 0
testDeprecatedWildcard 0.015
testWildcard 0
testDelegateFileFilter 0
testMakeCVSAware 0.016
testMakeSVNAware 0
testAgeFilter 2.016
testSizeFilter 0.015
testHidden 0.016
testCanRead 0.015
testCanWrite 0
testEmpty 0.016
testMakeDirectoryOnly 0
testMakeFileOnly 0.016

OrFileFilterTestCase

testAdd 0
testRemove 0
testNoFilters 0
testFilterBuiltUsingConstructor 0
testFilterBuiltUsingAdd 0

RegexFileFilterTestCase

testRegex 0.016

FilenameUtilsTestCase

testNormalize 0.078
testNormalizeNoEndSeparator 0.078
testConcat 0.109
testSeparatorsToUnix 0.235
testSeparatorsToWindows 0.093
testSeparatorsToSystem 0.047
testGetPrefixLength 0.078
testIndexOfLastSeparator 0.078
testIndexOfExtension 0.063
testGetPrefix 0.093
testGetPath 0.11
testGetPathNoEndSeparator 0.062
testGetFullPath 0.063
testGetFullPathNoEndSeparator 0.078
testGetName 0.062
testGetBaseName 0.063
testGetExtension 0.156
testRemoveExtension 0.094
testEquals 0.109
testEqualsOnSystem 0.063
testEqualsNormalized 0.062
testEqualsNormalizedOnSystem 0.11
testEqualsNormalizedError_IO_128 0.156
testEquals_fullControl 0.047
testIsExtension 0.062
testIsExtensionArray 0.078
testIsExtensionCollection 0.063

FilenameUtilsWildcardTestCase

testMatch 0
testMatchOnSystem 0
testMatchCaseSpecified 0
testSplitOnTokens 0
testMatch2 0

FileSystemUtilsTestCase

testGetFreeSpace_String 0.187
testGetFreeSpaceOS_String_NullPath 0
testGetFreeSpaceOS_String_InitError 0
testGetFreeSpaceOS_String_Other 0
testGetFreeSpaceOS_String_Windows 0
testGetFreeSpaceOS_String_Unix 0
testGetFreeSpaceWindows_String_ParseCommaFormatBytes 0.016
testGetFreeSpaceWindows_String_EmptyPath 0
testGetFreeSpaceWindows_String_NormalResponse 0
testGetFreeSpaceWindows_String_StripDrive 0
testGetFreeSpaceWindows_String_EmptyResponse 0
testGetFreeSpaceWindows_String_EmptyMultiLineResponse 0
testGetFreeSpaceWindows_String_InvalidTextResponse 0
testGetFreeSpaceWindows_String_NoSuchDirectoryResponse 0.015
testGetFreeSpaceUnix_String_EmptyPath 0
testGetFreeSpaceUnix_String_NormalResponseLinux 0
testGetFreeSpaceUnix_String_NormalResponseFreeBSD 0
testGetFreeSpaceUnix_String_NormalResponseKbLinux 0
testGetFreeSpaceUnix_String_NormalResponseKbFreeBSD 0
testGetFreeSpaceUnix_String_NormalResponseKbSolaris 0
testGetFreeSpaceUnix_String_LongResponse 0
testGetFreeSpaceUnix_String_LongResponseKb 0
testGetFreeSpaceUnix_String_EmptyResponse 0
testGetFreeSpaceUnix_String_InvalidResponse1 0
testGetFreeSpaceUnix_String_InvalidResponse2 0
testGetFreeSpaceUnix_String_InvalidResponse3 0
testGetFreeSpaceUnix_String_InvalidResponse4 0

FileUtilsCleanDirectoryTestCase

testCleanEmpty 0.031
testDeletesRegular 0
testDeletesNested 0.016
testThrowsOnNullList 0
testThrowsOnCannotDeleteFile 0

FileUtilsFileNewerTestCase

testIsFileNewer 0.015
testIsFileNewerImaginaryFile 0
testIsFileNewerNoFile 0.016
testIsFileNewerNoDate 0
testIsFileNewerNoFileReference 0.015

FileUtilsListFilesTestCase

testListFilesByExtension 0.016
testListFiles 0.016

FileUtilsTestCase

testListFiles 0.141
test_openInputStream_exists 0.016
test_openInputStream_existsButIsDirectory 0.015
test_openInputStream_notExists 0
test_openOutputStream_noParentCreateFile 0.016
test_openOutputStream_noParentNoFile 0.016
test_openOutputStream_exists 0.015
test_openOutputStream_existsButIsDirectory 0.016
test_openOutputStream_notExists 0.015
test_openOutputStream_notExistsCannotCreate 0.016
testByteCountToDisplaySize 0.015
testToFile1 0
testToFile2 0.016
testToFile3 0
testToFile4 0.016
testToFiles1 0.015
testToFiles2 0
testToFiles3 0.016
testToFiles4 0
testToURLs1 0.015
testContentEquals 0.032
testCopyURLToFile 0.015
testForceMkdir 0.016
testSizeOfDirectory 0
testIsFileNewerOlder 2.109
testCopyFile1 0.047
testCopyFile2 0.078
testCopyToSelf 0.078
testCopyFile2WithoutFileDatePreservation 0.079
testCopyDirectoryToDirectory_NonExistingDest 0.156
testCopyDirectoryToNonExistingDest 0.031
testCopyDirectoryToExistingDest 0.031
testCopyDirectoryFiltered 0.078
testCopyDirectoryToChild 0.734
testCopyDirectoryToGrandChild 0.25
testCopyDirectoryErrors 0.016
testForceDeleteAFile1 0
testForceDeleteAFile2 0
testForceDeleteAFile3 0.015
testCopyFile1ToDir 0.016
testCopyFile2ToDir 0.016
testForceDeleteDir 0
testFileUtils 0.015
testTouch 0.016
testIterateFiles 0.016
testReadFileToString 0.016
testReadFileToByteArray 0.015
testReadLines 0
testWriteStringToFile1 0.016
testWriteStringToFile2 0.016
testWriteCharSequence1 0.015
testWriteCharSequence2 0
testWriteByteArrayToFile 0.047
testWriteLines_4arg 0.047
testWriteLines_4arg_Writer_nullData 0.047
testWriteLines_4arg_nullSeparator 0.094
testWriteLines_3arg_nullSeparator 0.343
testChecksumCRC32 0.032
testChecksum 0.015
testChecksumOnNullFile 0
testChecksumOnNullChecksum 0.016
testChecksumOnDirectory 0.031
testChecksumDouble 0.094
testDeleteQuietlyForNull 0
testDeleteQuietlyDir 0.062
testDeleteQuietlyFile 0.032
testDeleteQuietlyNonExistent 0.015
testMoveFile_Rename 0.016
testMoveFile_CopyDelete 0.062
testMoveFile_CopyDelete_Failed 0.016
testMoveFile_Errors 0.016
testMoveFileToDirectory 0.015
testMoveFileToDirectory_Errors 0.031
testMoveDirectory_Rename 0.047
testMoveDirectory_CopyDelete 0.125
testMoveDirectory_Errors 0.016
testMoveDirectoryToDirectory 0.031
testMoveDirectoryToDirectory_Errors 0.016
testMoveToDirectory 0.062
testMoveToDirectory_Errors 0.016

FileUtilsWaitForTestCase

testWaitFor 5.328

HexDumpTest

testDump 0.031

AutoCloseInputStreamTest

testClose 0.015
testRead 0
testReadBuffer 0
testReadBufferOffsetLength 0

CharSequenceReaderTest

testClose 0
testRead 0
testMarkSupported 0
testMark 0
testSkip 0
testReadCharArray 0
testReadCharArrayPortion 0

ClassLoaderObjectInputStreamTest

testExpected 0

ClosedInputStreamTest

testRead 0

CloseShieldInputStreamTest

testClose 0

CountingInputStreamTest

testCounting 0
testLargeFiles_IO84 7.046
testResetting 0
testZeroLength1 0
testZeroLength2 0
testZeroLength3 0
testEOF1 0
testEOF2 0
testEOF3 0
testSkipping 0

NullInputStreamTest

testRead 0
testSkip 0
testReadByteArray 0
testEOFException 0
testMarkAndReset 0
testMarkNotSupported 0

NullReaderTest

testRead 0
testSkip 0
testReadCharArray 0
testEOFException 0
testMarkAndReset 0.016
testMarkNotSupported 0

SwappedDataInputStreamTest

testReadBoolean 0
testReadByte 0
testReadChar 0
testReadDouble 0
testReadFloat 0
testReadFully 0
testReadInt 0
testReadLine 0
testReadLong 0
testReadShort 0
testReadUnsignedByte 0
testReadUnsignedShort 0
testReadUTF 0
testSkipBytes 0

TeeInputStreamTest

testSkip 0
testReadNothing 0
testReadOneByte 0
testReadEverything 0
testReadToArray 0
testReadToArrayWithOffset 0
testMarkReset 0

IOCaseTestCase

test_forName 0
test_serialization 0
test_getName 0
test_toString 0
test_isCaseSensitive 0
test_checkCompare_functionality 0
test_checkCompare_case 0
test_checkEquals_functionality 0
test_checkEquals_case 0
test_checkStartsWith_functionality 0
test_checkStartsWith_case 0.016
test_checkEndsWith_functionality 0
test_checkEndsWith_case 0
test_checkRegionMatches_functionality 0
test_checkRegionMatches_case 0

IOExceptionWithCauseTestCase

testIOExceptionStringThrowable 0
testIOExceptionThrowable 0

IOUtilsCopyTestCase

testCopy_inputStreamToOutputStream 0
testCopy_inputStreamToWriter 0
testCopy_readerToOutputStream 0
testCopy_readerToWriter 0
testCopy_inputStreamToOutputStream_nullIn 0
testCopy_inputStreamToOutputStream_nullOut 0
testCopy_inputStreamToOutputStream_IO84 5.343
testCopy_inputStreamToWriter_nullIn 0
testCopy_inputStreamToWriter_nullOut 0
testCopy_inputStreamToWriter_Encoding 0
testCopy_inputStreamToWriter_Encoding_nullIn 0
testCopy_inputStreamToWriter_Encoding_nullOut 0
testCopy_inputStreamToWriter_Encoding_nullEncoding 0
testCopy_readerToOutputStream_nullIn 0
testCopy_readerToOutputStream_nullOut 0
testCopy_readerToOutputStream_Encoding 0
testCopy_readerToOutputStream_Encoding_nullIn 0
testCopy_readerToOutputStream_Encoding_nullOut 0
testCopy_readerToOutputStream_Encoding_nullEncoding 0
testCopy_readerToWriter_nullIn 0
testCopy_readerToWriter_nullOut 0
testCopy_readerToWriter_IO84 4.985

IOUtilsTestCase

testConstants 0
testInputStreamToString 0
testReaderToString 0.031
testStringToOutputStream 0
testStringToWriter 0.016
testInputStreamToByteArray 0.016
testStringToByteArray 0
testByteArrayToWriter 0.015
testByteArrayToString 0
testCharSequenceToInputStream 0.016
testStringToInputStream 0
testByteArrayToOutputStream 0
testInputStreamToCharArray 0
testInputStreamToCharArrayWithEncoding 0.016
testReaderToCharArray 0
testReadLines_InputStream 0.016
testReadLines_InputStream_String 0
testReadLines_Reader 0.015

IOUtilsWriteTestCase

testWrite_byteArrayToOutputStream 0
testWrite_byteArrayToOutputStream_nullData 0
testWrite_byteArrayToOutputStream_nullStream 0
testWrite_byteArrayToWriter 0
testWrite_byteArrayToWriter_nullData 0
testWrite_byteArrayToWriter_nullWriter 0
testWrite_byteArrayToWriter_Encoding 0
testWrite_byteArrayToWriter_Encoding_nullData 0
testWrite_byteArrayToWriter_Encoding_nullWriter 0
testWrite_byteArrayToWriter_Encoding_nullEncoding 0
testWrite_charSequenceToOutputStream 0
testWrite_charSequenceToOutputStream_nullData 0
testWrite_charSequenceToOutputStream_nullStream 0
testWrite_charSequenceToOutputStream_Encoding 0.016
testWrite_charSequenceToOutputStream_Encoding_nullData 0
testWrite_charSequenceToOutputStream_Encoding_nullStream 0
testWrite_charSequenceToOutputStream_nullEncoding 0
testWrite_charSequenceToWriter 0
testWrite_charSequenceToWriter_Encoding_nullData 0
testWrite_charSequenceToWriter_Encoding_nullStream 0
testWrite_stringToOutputStream 0
testWrite_stringToOutputStream_nullData 0
testWrite_stringToOutputStream_nullStream 0
testWrite_stringToOutputStream_Encoding 0
testWrite_stringToOutputStream_Encoding_nullData 0
testWrite_stringToOutputStream_Encoding_nullStream 0
testWrite_stringToOutputStream_nullEncoding 0
testWrite_stringToWriter 0
testWrite_stringToWriter_Encoding_nullData 0
testWrite_stringToWriter_Encoding_nullStream 0
testWrite_charArrayToOutputStream 0
testWrite_charArrayToOutputStream_nullData 0
testWrite_charArrayToOutputStream_nullStream 0.015
testWrite_charArrayToOutputStream_Encoding 0
testWrite_charArrayToOutputStream_Encoding_nullData 0
testWrite_charArrayToOutputStream_Encoding_nullStream 0
testWrite_charArrayToOutputStream_nullEncoding 0
testWrite_charArrayToWriter 0
testWrite_charArrayToWriter_Encoding_nullData 0
testWrite_charArrayToWriter_Encoding_nullStream 0
testWriteLines_OutputStream 0
testWriteLines_OutputStream_nullData 0
testWriteLines_OutputStream_nullSeparator 0
testWriteLines_OutputStream_nullStream 0
testWriteLines_OutputStream_Encoding 0
testWriteLines_OutputStream_Encoding_nullData 0
testWriteLines_OutputStream_Encoding_nullSeparator 0
testWriteLines_OutputStream_Encoding_nullStream 0
testWriteLines_OutputStream_Encoding_nullEncoding 0
testWriteLines_Writer 0.016
testWriteLines_Writer_nullData 0
testWriteLines_Writer_nullSeparator 0
testWriteLines_Writer_nullStream 0

LineIteratorTestCase

testConstructor 0
testZeroLines 0.016
testOneLines 0
testTwoLines 0.016
testThreeLines 0
testMissingFile 0
testValidEncoding 0.015
testInvalidEncoding 0
testNextOnly 0.016
testNextLineOnly 0
testCloseEarly 0.015
testFiltering 0

ByteArrayOutputStreamTestCase

testStream 0

ClosedOutputStreamTest

testRead 0.016

CloseShieldOutputStreamTest

testClose 0

CountingOutputStreamTest

testCounting 0
testLargeFiles_IO84 7.563

DeferredFileOutputStreamTest

testBelowThreshold 0
testAtThreshold 0
testAboveThreshold 0
testThresholdReached 0
testWriteToSmall 0
testWriteToLarge 0
testTempFileBelowThreshold 0
testTempFileAboveThreshold 0
testTempFileAboveThresholdPrefixOnly 0
testTempFileError 0

FileWriterWithEncodingTest

testSameEncoding 0.063
testDifferentEncoding 0.046
testConstructor_File_encoding_badEncoding 0.032
testConstructor_File_directory 0
testConstructor_File_nullFile 0
testConstructor_fileName_nullFile 0

LockableFileWriterTest

testConstructor_File_encoding_badEncoding 0.016
testConstructor_File_directory 0
testConstructor_File_nullFile 0
testConstructor_fileName_nullFile 0
testFileLocked 0
testAlternateLockDir 0.015
testFileNotLocked 0

NullOutputStreamTest

testNull 0

NullWriterTest

testNull 0.188

StringBuilderWriterTest

testClose 0
testAppendConstructCapacity 0
testAppendConstructStringBuilder 0
testAppendConstructNull 0
testAppendChar 0
testAppendCharSequence 0
testAppendCharSequencePortion 0
testWriteChar 0
testWriteCharArray 0
testWriteCharArrayPortion 0
testWriteString 0
testWriteStringPortion 0

TeeOutputStreamTest

testTee 0.016