Java Doc for FileUtilsTestCase.java in  » Library » apache-common-IO » org » apache » commons » io » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » apache common IO » org.apache.commons.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.io.testtools.FileBasedTestCase
   org.apache.commons.io.FileUtilsTestCase

FileUtilsTestCase
public class FileUtilsTestCase extends FileBasedTestCase (Code)
This is used to test FileUtils for correctness.
author:
   Peter Donald
author:
   Matthew Hawthorne
author:
   Stephen Colebourne
author:
   Jim Harrington
version:
   $Id: FileUtilsTestCase.java 503497 2007-02-04 22:15:11Z ggregory $
See Also:   FileUtils



Constructor Summary
public  FileUtilsTestCase(String name)
    

Method Summary
public static  voidmain(String[] args)
    
 voidopenOutputStream_noParent(boolean createFile)
    
protected  voidsetUp()
    
public static  Testsuite()
    
protected  voidtearDown()
    
public  voidtestByteCountToDisplaySize()
    
public  voidtestChecksum()
    
public  voidtestChecksumCRC32()
    
public  voidtestChecksumDouble()
    
public  voidtestChecksumOnDirectory()
    
public  voidtestChecksumOnNullChecksum()
    
public  voidtestChecksumOnNullFile()
    
public  voidtestContentEquals()
    
public  voidtestCopyDirectoryErrors()
    
public  voidtestCopyDirectoryToDirectory_NonExistingDest()
    
public  voidtestCopyDirectoryToExistingDest()
    
public  voidtestCopyDirectoryToNonExistingDest()
    
public  voidtestCopyFile1()
    
public  voidtestCopyFile1ToDir()
    
public  voidtestCopyFile2()
    
public  voidtestCopyFile2ToDir()
    
public  voidtestCopyFile2WithoutFileDatePreservation()
    
public  voidtestCopyToSelf()
    
public  voidtestCopyURLToFile()
    
public  voidtestFileUtils()
     Test the FileUtils implementation.
public  voidtestForceDeleteAFile1()
    
public  voidtestForceDeleteAFile2()
    
public  voidtestForceDeleteDir()
    
public  voidtestForceMkdir()
    
public  voidtestIsFileNewerOlder()
    
public  voidtestIterateFiles()
    
public  voidtestListFiles()
    
public  voidtestReadFileToByteArray()
    
public  voidtestReadFileToString()
    
public  voidtestReadLines()
    
public  voidtestSizeOfDirectory()
    
public  voidtestToFile1()
    
public  voidtestToFile2()
    
public  voidtestToFile3()
    
public  voidtestToFile4()
    
public  voidtestToFiles1()
    
public  voidtestToFiles2()
    
public  voidtestToFiles3()
    
public  voidtestToFiles4()
    
public  voidtestToURLs1()
    
public  voidtestTouch()
    
public  voidtestWriteByteArrayToFile()
    
public  voidtestWriteLines_3arg_nullSeparator()
    
public  voidtestWriteLines_4arg()
    
public  voidtestWriteLines_4arg_Writer_nullData()
    
public  voidtestWriteLines_4arg_nullSeparator()
    
public  voidtestWriteStringToFile1()
    
public  voidtestWriteStringToFile2()
    
public  voidtest_openInputStream_exists()
    
public  voidtest_openInputStream_existsButIsDirectory()
    
public  voidtest_openInputStream_notExists()
    
public  voidtest_openOutputStream_exists()
    
public  voidtest_openOutputStream_existsButIsDirectory()
    
public  voidtest_openOutputStream_noParentCreateFile()
    
public  voidtest_openOutputStream_noParentNoFile()
    
public  voidtest_openOutputStream_notExists()
    
public  voidtest_openOutputStream_notExistsCannotCreate()
    


Constructor Detail
FileUtilsTestCase
public FileUtilsTestCase(String name) throws IOException(Code)




Method Detail
main
public static void main(String[] args)(Code)



openOutputStream_noParent
void openOutputStream_noParent(boolean createFile) throws Exception(Code)



setUp
protected void setUp() throws Exception(Code)

See Also:   junit.framework.TestCase.setUp
See Also:   



suite
public static Test suite()(Code)



tearDown
protected void tearDown() throws Exception(Code)

See Also:   junit.framework.TestCase.tearDown
See Also:   



testByteCountToDisplaySize
public void testByteCountToDisplaySize()(Code)



testChecksum
public void testChecksum() throws Exception(Code)



testChecksumCRC32
public void testChecksumCRC32() throws Exception(Code)



testChecksumDouble
public void testChecksumDouble() throws Exception(Code)



testChecksumOnDirectory
public void testChecksumOnDirectory() throws Exception(Code)



testChecksumOnNullChecksum
public void testChecksumOnNullChecksum() throws Exception(Code)



testChecksumOnNullFile
public void testChecksumOnNullFile() throws Exception(Code)



testContentEquals
public void testContentEquals() throws Exception(Code)



testCopyDirectoryErrors
public void testCopyDirectoryErrors() throws Exception(Code)



testCopyDirectoryToDirectory_NonExistingDest
public void testCopyDirectoryToDirectory_NonExistingDest() throws Exception(Code)



testCopyDirectoryToExistingDest
public void testCopyDirectoryToExistingDest() throws Exception(Code)



testCopyDirectoryToNonExistingDest
public void testCopyDirectoryToNonExistingDest() throws Exception(Code)



testCopyFile1
public void testCopyFile1() throws Exception(Code)



testCopyFile1ToDir
public void testCopyFile1ToDir() throws Exception(Code)



testCopyFile2
public void testCopyFile2() throws Exception(Code)



testCopyFile2ToDir
public void testCopyFile2ToDir() throws Exception(Code)



testCopyFile2WithoutFileDatePreservation
public void testCopyFile2WithoutFileDatePreservation() throws Exception(Code)



testCopyToSelf
public void testCopyToSelf() throws Exception(Code)



testCopyURLToFile
public void testCopyURLToFile() throws Exception(Code)



testFileUtils
public void testFileUtils() throws Exception(Code)
Test the FileUtils implementation.



testForceDeleteAFile1
public void testForceDeleteAFile1() throws Exception(Code)



testForceDeleteAFile2
public void testForceDeleteAFile2() throws Exception(Code)



testForceDeleteDir
public void testForceDeleteDir() throws Exception(Code)



testForceMkdir
public void testForceMkdir() throws Exception(Code)



testIsFileNewerOlder
public void testIsFileNewerOlder() throws Exception(Code)



testIterateFiles
public void testIterateFiles() throws Exception(Code)



testListFiles
public void testListFiles() throws Exception(Code)



testReadFileToByteArray
public void testReadFileToByteArray() throws Exception(Code)



testReadFileToString
public void testReadFileToString() throws Exception(Code)



testReadLines
public void testReadLines() throws Exception(Code)



testSizeOfDirectory
public void testSizeOfDirectory() throws Exception(Code)



testToFile1
public void testToFile1() throws Exception(Code)



testToFile2
public void testToFile2() throws Exception(Code)



testToFile3
public void testToFile3() throws Exception(Code)



testToFile4
public void testToFile4() throws Exception(Code)



testToFiles1
public void testToFiles1() throws Exception(Code)



testToFiles2
public void testToFiles2() throws Exception(Code)



testToFiles3
public void testToFiles3() throws Exception(Code)



testToFiles4
public void testToFiles4() throws Exception(Code)



testToURLs1
public void testToURLs1() throws Exception(Code)



testTouch
public void testTouch() throws IOException(Code)



testWriteByteArrayToFile
public void testWriteByteArrayToFile() throws Exception(Code)



testWriteLines_3arg_nullSeparator
public void testWriteLines_3arg_nullSeparator() throws Exception(Code)



testWriteLines_4arg
public void testWriteLines_4arg() throws Exception(Code)



testWriteLines_4arg_Writer_nullData
public void testWriteLines_4arg_Writer_nullData() throws Exception(Code)



testWriteLines_4arg_nullSeparator
public void testWriteLines_4arg_nullSeparator() throws Exception(Code)



testWriteStringToFile1
public void testWriteStringToFile1() throws Exception(Code)



testWriteStringToFile2
public void testWriteStringToFile2() throws Exception(Code)



test_openInputStream_exists
public void test_openInputStream_exists() throws Exception(Code)



test_openInputStream_existsButIsDirectory
public void test_openInputStream_existsButIsDirectory() throws Exception(Code)



test_openInputStream_notExists
public void test_openInputStream_notExists() throws Exception(Code)



test_openOutputStream_exists
public void test_openOutputStream_exists() throws Exception(Code)



test_openOutputStream_existsButIsDirectory
public void test_openOutputStream_existsButIsDirectory() throws Exception(Code)



test_openOutputStream_noParentCreateFile
public void test_openOutputStream_noParentCreateFile() throws Exception(Code)



test_openOutputStream_noParentNoFile
public void test_openOutputStream_noParentNoFile() throws Exception(Code)



test_openOutputStream_notExists
public void test_openOutputStream_notExists() throws Exception(Code)



test_openOutputStream_notExistsCannotCreate
public void test_openOutputStream_notExistsCannotCreate() throws Exception(Code)



Methods inherited from org.apache.commons.io.testtools.FileBasedTestCase
protected void assertEqualContent(byte[] b0, File file) throws IOException(Code)(Java Doc)
protected void assertEqualContent(char[] c0, File file) throws IOException(Code)(Java Doc)
protected void checkFile(File file, File referenceFile) throws Exception(Code)(Java Doc)
protected void checkWrite(OutputStream output) throws Exception(Code)(Java Doc)
protected void checkWrite(Writer output) throws Exception(Code)(Java Doc)
protected void createFile(File file, long size) throws IOException(Code)(Java Doc)
protected void createLineBasedFile(File file, String[] data) throws IOException(Code)(Java Doc)
protected void deleteFile(File file) throws Exception(Code)(Java Doc)
protected byte[] generateTestData(long size)(Code)(Java Doc)
protected void generateTestData(OutputStream out, long size) throws IOException(Code)(Java Doc)
public static File getTestDirectory()(Code)(Java Doc)
protected File newFile(String filename) throws IOException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.