org.apache.commons.io
Class FileSystemUtilsTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.io.testtools.FileBasedTestCase
              extended by org.apache.commons.io.FileSystemUtilsTestCase
All Implemented Interfaces:
junit.framework.Test

public class FileSystemUtilsTestCase
extends FileBasedTestCase

This is used to test FileSystemUtils.

Version:
$Id: FileSystemUtilsTestCase.java 606380 2007-12-22 01:58:46Z ggregory $

Constructor Summary
FileSystemUtilsTestCase(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testGetFreeSpace_String()
           
 void testGetFreeSpaceOS_String_InitError()
           
 void testGetFreeSpaceOS_String_NullPath()
           
 void testGetFreeSpaceOS_String_Other()
           
 void testGetFreeSpaceOS_String_Unix()
           
 void testGetFreeSpaceOS_String_Windows()
           
 void testGetFreeSpaceUnix_String_EmptyPath()
           
 void testGetFreeSpaceUnix_String_EmptyResponse()
           
 void testGetFreeSpaceUnix_String_InvalidResponse1()
           
 void testGetFreeSpaceUnix_String_InvalidResponse2()
           
 void testGetFreeSpaceUnix_String_InvalidResponse3()
           
 void testGetFreeSpaceUnix_String_InvalidResponse4()
           
 void testGetFreeSpaceUnix_String_LongResponse()
           
 void testGetFreeSpaceUnix_String_LongResponseKb()
           
 void testGetFreeSpaceUnix_String_NormalResponseFreeBSD()
           
 void testGetFreeSpaceUnix_String_NormalResponseKbFreeBSD()
           
 void testGetFreeSpaceUnix_String_NormalResponseKbLinux()
           
 void testGetFreeSpaceUnix_String_NormalResponseKbSolaris()
           
 void testGetFreeSpaceUnix_String_NormalResponseLinux()
           
 void testGetFreeSpaceWindows_String_EmptyMultiLineResponse()
           
 void testGetFreeSpaceWindows_String_EmptyPath()
           
 void testGetFreeSpaceWindows_String_EmptyResponse()
           
 void testGetFreeSpaceWindows_String_InvalidTextResponse()
           
 void testGetFreeSpaceWindows_String_NormalResponse()
           
 void testGetFreeSpaceWindows_String_NoSuchDirectoryResponse()
           
 void testGetFreeSpaceWindows_String_ParseCommaFormatBytes()
           
 void testGetFreeSpaceWindows_String_StripDrive()
           
 
Methods inherited from class org.apache.commons.io.testtools.FileBasedTestCase
assertEqualContent, assertEqualContent, checkFile, checkWrite, checkWrite, createFile, createLineBasedFile, deleteFile, generateTestData, generateTestData, getTestDirectory, newFile
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileSystemUtilsTestCase

public FileSystemUtilsTestCase(java.lang.String name)
                        throws java.io.IOException
Throws:
java.io.IOException
Method Detail

main

public static void main(java.lang.String[] args)

suite

public static junit.framework.Test suite()

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testGetFreeSpace_String

public void testGetFreeSpace_String()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceOS_String_NullPath

public void testGetFreeSpaceOS_String_NullPath()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceOS_String_InitError

public void testGetFreeSpaceOS_String_InitError()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceOS_String_Other

public void testGetFreeSpaceOS_String_Other()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceOS_String_Windows

public void testGetFreeSpaceOS_String_Windows()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceOS_String_Unix

public void testGetFreeSpaceOS_String_Unix()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceWindows_String_ParseCommaFormatBytes

public void testGetFreeSpaceWindows_String_ParseCommaFormatBytes()
                                                          throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceWindows_String_EmptyPath

public void testGetFreeSpaceWindows_String_EmptyPath()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceWindows_String_NormalResponse

public void testGetFreeSpaceWindows_String_NormalResponse()
                                                   throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceWindows_String_StripDrive

public void testGetFreeSpaceWindows_String_StripDrive()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceWindows_String_EmptyResponse

public void testGetFreeSpaceWindows_String_EmptyResponse()
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceWindows_String_EmptyMultiLineResponse

public void testGetFreeSpaceWindows_String_EmptyMultiLineResponse()
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceWindows_String_InvalidTextResponse

public void testGetFreeSpaceWindows_String_InvalidTextResponse()
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceWindows_String_NoSuchDirectoryResponse

public void testGetFreeSpaceWindows_String_NoSuchDirectoryResponse()
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceUnix_String_EmptyPath

public void testGetFreeSpaceUnix_String_EmptyPath()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceUnix_String_NormalResponseLinux

public void testGetFreeSpaceUnix_String_NormalResponseLinux()
                                                     throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceUnix_String_NormalResponseFreeBSD

public void testGetFreeSpaceUnix_String_NormalResponseFreeBSD()
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceUnix_String_NormalResponseKbLinux

public void testGetFreeSpaceUnix_String_NormalResponseKbLinux()
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceUnix_String_NormalResponseKbFreeBSD

public void testGetFreeSpaceUnix_String_NormalResponseKbFreeBSD()
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceUnix_String_NormalResponseKbSolaris

public void testGetFreeSpaceUnix_String_NormalResponseKbSolaris()
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceUnix_String_LongResponse

public void testGetFreeSpaceUnix_String_LongResponse()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceUnix_String_LongResponseKb

public void testGetFreeSpaceUnix_String_LongResponseKb()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceUnix_String_EmptyResponse

public void testGetFreeSpaceUnix_String_EmptyResponse()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceUnix_String_InvalidResponse1

public void testGetFreeSpaceUnix_String_InvalidResponse1()
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceUnix_String_InvalidResponse2

public void testGetFreeSpaceUnix_String_InvalidResponse2()
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceUnix_String_InvalidResponse3

public void testGetFreeSpaceUnix_String_InvalidResponse3()
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

testGetFreeSpaceUnix_String_InvalidResponse4

public void testGetFreeSpaceUnix_String_InvalidResponse4()
                                                  throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.