Java Doc for SVNTests.java in  » Source-Control » tmatesoft-SVN » org » tigris » subversion » javahl » tests » 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 » Source Control » tmatesoft SVN » org.tigris.subversion.javahl.tests 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.tigris.subversion.javahl.tests.SVNTests

All known Subclasses:   org.tigris.subversion.javahl.tests.BasicTests,
SVNTests
public class SVNTests extends TestCase (Code)
common base class for the javahl binding tests

Inner Class :public class FileOutputer implements OutputInterface
Inner Class :public class IgnoreOutputer implements OutputInterface
Inner Class :public class FileInputer implements InputInterface
Inner Class :protected class OneTest
Inner Class :class MyCommitMessage implements CommitMessage
Inner Class :class MyCommitItem
Inner Class :class MyNotifier implements Notify2

Field Summary
protected  SVNAdminadmin
    
protected  SVNClientInterfaceclient
     the subversion client, what we want to test.
protected  Fileconf
     the directory "config" in the localTmp.
protected  MapexpectedCommitItems
     the map of all items expected to be received by the callback for the log message.
protected  FilegreekDump
     the file in which the sample repository has been dumped.
protected  FilegreekRepos
     the directory of the sample repository.
protected  WCgreekWC
     the initial working copy of the sample repository.
protected  FilelocalTmp
     the directory "svn-test-work/local_tmp" in the rootDir.
protected  StringlogMessage
     standard log message.
protected  Filerepositories
     the directory "repositories" in the rootDir.
protected  FilerootDir
     the root directory.
protected static  StringrootDirectoryName
     common root directory for all tests.
protected static  StringrootUrl
     common root URL for all tests.
protected  StringtestBaseName
     the base name of the test.
protected static  inttestCounter
    
protected  FileworkingCopies
     the directory "working_copies" in the rootDir.

Constructor Summary
protected  SVNTests()
    

Method Summary
protected  voidaddExpectedCommitItem(String workingCopyPath, String baseUrl, String itemPath, int nodeKind, int stateFlags)
     add another commit item expected during the callback for the log message.
protected  StringgetAdminDirectoryName()
     Intended to be called as part of test method execution (post- SVNTests.setUp() ).
public static  voidmain(String[] args)
    
protected  StringmakeReposUrl(File file)
     Create the url for the repository to be used for the tests.
protected static  voidprocessArgs(String[] args)
    
protected  voidremoveDirectoryWithContent(File localTmp)
     Remove a directory with all files and directories it may contain.
protected  voidsetUp()
    
public static  TestSuitesuite()
    
protected  voidtearDown()
    

Field Detail
admin
protected SVNAdmin admin(Code)
our admin object, mostly used for creating,dumping and loading repositories



client
protected SVNClientInterface client(Code)
the subversion client, what we want to test.



conf
protected File conf(Code)
the directory "config" in the localTmp. It will be used as the configuration directory for all the tests.



expectedCommitItems
protected Map expectedCommitItems(Code)
the map of all items expected to be received by the callback for the log message. After each commit, this will be cleared



greekDump
protected File greekDump(Code)
the file in which the sample repository has been dumped.



greekRepos
protected File greekRepos(Code)
the directory of the sample repository.



greekWC
protected WC greekWC(Code)
the initial working copy of the sample repository.



localTmp
protected File localTmp(Code)
the directory "svn-test-work/local_tmp" in the rootDir. This will be used for the sample repository and its dumpfile and for the config directory



logMessage
protected String logMessage(Code)
standard log message. Used for all commits.



repositories
protected File repositories(Code)
the directory "repositories" in the rootDir. All test repositories will be created here.



rootDir
protected File rootDir(Code)
the root directory. All other files and directories will created in here



rootDirectoryName
protected static String rootDirectoryName(Code)
common root directory for all tests. Can be set by the command line or by the system property "test.rootdir". If not set, the current directory of this process is used



rootUrl
protected static String rootUrl(Code)
common root URL for all tests. Can be set by the command line or by the system property "test.rooturl". If not set, the file url of the rootDirectoryName is used.



testBaseName
protected String testBaseName(Code)
the base name of the test. Together with the testCounter this will make up the directory name of the test.



testCounter
protected static int testCounter(Code)
this counter will be incremented for every test in one suite (test class)



workingCopies
protected File workingCopies(Code)
the directory "working_copies" in the rootDir. All test working copies will be created here.




Constructor Detail
SVNTests
protected SVNTests()(Code)
Initialize one test object




Method Detail
addExpectedCommitItem
protected void addExpectedCommitItem(String workingCopyPath, String baseUrl, String itemPath, int nodeKind, int stateFlags)(Code)
add another commit item expected during the callback for the log message.
Parameters:
  workingCopyPath - the path of the of the working
Parameters:
  baseUrl - the url for the repository
Parameters:
  itemPath - the path of the item relative the working copy
Parameters:
  nodeKind - expected node kind (dir or file or none)
Parameters:
  stateFlags - expected commit state flags(see CommitItemStateFlags)



getAdminDirectoryName
protected String getAdminDirectoryName()(Code)
Intended to be called as part of test method execution (post- SVNTests.setUp() ). Calls fail() if the directory name cannot be determined. The name of the working copy administrative directory.
since:
   1.3



main
public static void main(String[] args)(Code)
Main method, will call all tests of all test classes
Parameters:
  args - command line arguments



makeReposUrl
protected String makeReposUrl(File file)(Code)
Create the url for the repository to be used for the tests.
Parameters:
  file - the directory of the repository the URL for the repository



processArgs
protected static void processArgs(String[] args)(Code)
retrieve the root directory and the root url from the command line arguments
Parameters:
  args - command line arguments



removeDirectoryWithContent
protected void removeDirectoryWithContent(File localTmp)(Code)
Remove a directory with all files and directories it may contain.
Parameters:
  localTmp -



setUp
protected void setUp() throws Exception(Code)
Standard initialization of one test
throws:
  Exception -



suite
public static TestSuite suite()(Code)
build a test suite with all test of all test classes known complete test suite



tearDown
protected void tearDown() throws Exception(Code)
cleanup after one test
throws:
  Exception -



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