Java Doc for FTPTestCase.java in  » Net » edtftpj » com » enterprisedt » net » ftp » test » 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 » Net » edtftpj » com.enterprisedt.net.ftp.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.enterprisedt.net.ftp.test.FTPTestCase

All known Subclasses:   com.enterprisedt.net.ftp.test.TestGeneral,  com.enterprisedt.net.ftp.test.TestListings,  com.enterprisedt.net.ftp.test.TestTimeout,  com.enterprisedt.net.ftp.test.TestFeatures,  com.enterprisedt.net.ftp.test.VMSTests,  com.enterprisedt.net.ftp.test.TestFileOperations,  com.enterprisedt.net.ftp.test.TestAutoModeTransfer,  com.enterprisedt.net.ftp.test.TestPortRange,  com.enterprisedt.net.ftp.test.TestBulkTransfer,  com.enterprisedt.net.ftp.test.TestTransfer,  com.enterprisedt.net.ftp.test.TestExists,  com.enterprisedt.net.ftp.test.TestResume,  com.enterprisedt.net.ftp.test.TestDirOperations,  com.enterprisedt.net.ftp.test.TestMLST,  com.enterprisedt.net.ftp.test.TestBigTransfer,
FTPTestCase
abstract public class FTPTestCase extends TestCase (Code)
Generic JUnit test class for FTP, that provides some useful methods for subclasses that implement the actual test cases
author:
   Bruce Blackshaw
version:
   $Revision: 1.22 $


Field Summary
protected  intbulkCount
    
public static  StringcvsId
    
protected  FTPClientInterfaceftp
    
protected  inthighPort
    
protected  StringlocalBigFile
    
protected  StringlocalBigTextFile
    
protected  StringlocalBinaryFile
    
protected  StringlocalDataDir
    
protected  StringlocalEmptyFile
    
protected  StringlocalTestDir
    
protected  StringlocalTextFile
    
protected  StringlocalUnixTextFile
    
protected  Loggerlog
    
protected  StringlogDir
    
protected  intlowPort
    
protected  Propertiesprops
    
protected  StringremoteBinaryFile
    
protected  StringremoteEmptyDir
    
protected  StringremoteEmptyFile
    
protected  StringremoteTextFile
    
protected  Stringtestdir
    
protected  TestToolstools
    

Constructor Summary
public  FTPTestCase()
    

Method Summary
protected  voidassertIdentical(byte[] buf1, byte[] buf2)
    
protected  voidassertIdentical(String file1, String file2)
    
protected  voidassertIdentical(File file1, File file2)
    
protected  voidbulkTransfer(String localFile)
    
protected  voidconnect()
    
protected  StringgenerateRandomFilename()
    
abstract protected  StringgetLogName()
    
protected  voidprint(String[] list)
    
protected  voidprint(File[] list)
    
protected  voidprint(FTPFile[] list)
    
protected  voidsetUp()
    
protected  voidtearDown()
    

Field Detail
bulkCount
protected int bulkCount(Code)
Number of operations for stress testing



cvsId
public static String cvsId(Code)
Revision control id



ftp
protected FTPClientInterface ftp(Code)
Reference to the FTP client



highPort
protected int highPort(Code)
Highest port



localBigFile
protected String localBigFile(Code)
Big local file for testing



localBigTextFile
protected String localBigTextFile(Code)
Big local text file for testing



localBinaryFile
protected String localBinaryFile(Code)
Local binary file



localDataDir
protected String localDataDir(Code)
Local data directory



localEmptyFile
protected String localEmptyFile(Code)
Local empty file



localTestDir
protected String localTestDir(Code)
Local test dir



localTextFile
protected String localTextFile(Code)
Local text file



localUnixTextFile
protected String localUnixTextFile(Code)
Local text file



log
protected Logger log(Code)
Log stream



logDir
protected String logDir(Code)
Log directory



lowPort
protected int lowPort(Code)
Lowest port



props
protected Properties props(Code)
Loaded properties



remoteBinaryFile
protected String remoteBinaryFile(Code)
Remote binary file



remoteEmptyDir
protected String remoteEmptyDir(Code)
Remote empty dir



remoteEmptyFile
protected String remoteEmptyFile(Code)
Remote empty file



remoteTextFile
protected String remoteTextFile(Code)
Remote text file



testdir
protected String testdir(Code)
Remote directory that remote test files/dirs are in



tools
protected TestTools tools(Code)
Server specific tools




Constructor Detail
FTPTestCase
public FTPTestCase()(Code)
Initialize test properties




Method Detail
assertIdentical
protected void assertIdentical(byte[] buf1, byte[] buf2) throws Exception(Code)
Test to see if two buffers are identical, byte for byte
Parameters:
  buf1 - first buffer
Parameters:
  buf2 - second buffer



assertIdentical
protected void assertIdentical(String file1, String file2) throws Exception(Code)
Test to see if two files are identical, byte for byte
Parameters:
  file1 - name of first file
Parameters:
  file2 - name of second file



assertIdentical
protected void assertIdentical(File file1, File file2) throws Exception(Code)
Test to see if two files are identical, byte for byte
Parameters:
  file1 - first file object
Parameters:
  file2 - second file object



bulkTransfer
protected void bulkTransfer(String localFile) throws Exception(Code)
Transfer back and forth multiple times



connect
protected void connect() throws Exception(Code)
Connect to the server and setup log stream



generateRandomFilename
protected String generateRandomFilename()(Code)
Generate a random file name for testing random filename



getLogName
abstract protected String getLogName()(Code)
Get name of log file name of file to log to



print
protected void print(String[] list)(Code)
Helper method for dumping a listing
Parameters:
  list - directory listing to print



print
protected void print(File[] list)(Code)
Helper method for dumping a listing
Parameters:
  list - directory listing to print



print
protected void print(FTPFile[] list)(Code)
Helper method for dumping a listing
Parameters:
  list - directory listing to print



setUp
protected void setUp() throws Exception(Code)
Setup is called before running each test



tearDown
protected void tearDown() throws Exception(Code)
Deallocate resources at close of each test



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