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 void
main
(
String
[] args)
void
openOutputStream_noParent
(boolean createFile)
protected
void
setUp
()
public
static Test
suite
()
protected
void
tearDown
()
public
void
testByteCountToDisplaySize
()
public
void
testChecksum
()
public
void
testChecksumCRC32
()
public
void
testChecksumDouble
()
public
void
testChecksumOnDirectory
()
public
void
testChecksumOnNullChecksum
()
public
void
testChecksumOnNullFile
()
public
void
testContentEquals
()
public
void
testCopyDirectoryErrors
()
public
void
testCopyDirectoryToDirectory_NonExistingDest
()
public
void
testCopyDirectoryToExistingDest
()
public
void
testCopyDirectoryToNonExistingDest
()
public
void
testCopyFile1
()
public
void
testCopyFile1ToDir
()
public
void
testCopyFile2
()
public
void
testCopyFile2ToDir
()
public
void
testCopyFile2WithoutFileDatePreservation
()
public
void
testCopyToSelf
()
public
void
testCopyURLToFile
()
public
void
testFileUtils
()
Test the FileUtils implementation.
public
void
testForceDeleteAFile1
()
public
void
testForceDeleteAFile2
()
public
void
testForceDeleteDir
()
public
void
testForceMkdir
()
public
void
testIsFileNewerOlder
()
public
void
testIterateFiles
()
public
void
testListFiles
()
public
void
testReadFileToByteArray
()
public
void
testReadFileToString
()
public
void
testReadLines
()
public
void
testSizeOfDirectory
()
public
void
testToFile1
()
public
void
testToFile2
()
public
void
testToFile3
()
public
void
testToFile4
()
public
void
testToFiles1
()
public
void
testToFiles2
()
public
void
testToFiles3
()
public
void
testToFiles4
()
public
void
testToURLs1
()
public
void
testTouch
()
public
void
testWriteByteArrayToFile
()
public
void
testWriteLines_3arg_nullSeparator
()
public
void
testWriteLines_4arg
()
public
void
testWriteLines_4arg_Writer_nullData
()
public
void
testWriteLines_4arg_nullSeparator
()
public
void
testWriteStringToFile1
()
public
void
testWriteStringToFile2
()
public
void
test_openInputStream_exists
()
public
void
test_openInputStream_existsButIsDirectory
()
public
void
test_openInputStream_notExists
()
public
void
test_openOutputStream_exists
()
public
void
test_openOutputStream_existsButIsDirectory
()
public
void
test_openOutputStream_noParentCreateFile
()
public
void
test_openOutputStream_noParentNoFile
()
public
void
test_openOutputStream_notExists
()
public
void
test_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.