org.tigris.subversion.javahl.tests
Class SVNTests.OneTest
java.lang.Object
org.tigris.subversion.javahl.tests.SVNTests.OneTest
- SVNTests
protected class SVNTests.OneTest
extends java.lang.Object
this internal class represent the repository and the working copy for
one test.
protected File | repository - the file name of repository (used by SVNAdmin)
|
protected String | url - the url of the repository (used by SVNClient)
|
protected WC | wc - the expected layout of the working copy after the next subversion
command
|
protected File | workingCopy - the file name of the working copy directory
|
OneTest() - build a new test setup with a new repository, a new working and a
new expected working layout
|
void | checkStatus() - Check if the working copy has the expected status
|
protected SVNTests.OneTest | copy(String append) - Copy the working copy and the expected working copy layout for tests
which need multiple working copy
|
protected File | createStartRepository(String testName) - Create the repository for the beginning of the test
|
protected File | createStartWorkingCopy(File repos, String testName) - Create the working copy for the beginning of the test
|
File | getRepository() - Return the directory of the repository
|
String | getRepositoryPath() - Return the name of the directory of the repository
|
String | getUrl() - Returns the url of repository
|
String | getWCPath() - Return the working copy directory name
|
WC | getWc() - Returns the expected working copy content
|
File | getWorkingCopy() - Return the working copy directory
|
repository
protected File repository
the file name of repository (used by SVNAdmin)
url
protected String url
the url of the repository (used by SVNClient)
wc
protected WC wc
the expected layout of the working copy after the next subversion
command
workingCopy
protected File workingCopy
the file name of the working copy directory
OneTest
protected OneTest()
throws Exception
build a new test setup with a new repository, a new working and a
new expected working layout
checkStatus
public void checkStatus()
throws Exception
Check if the working copy has the expected status
copy
protected SVNTests.OneTest copy(String append)
throws Exception
Copy the working copy and the expected working copy layout for tests
which need multiple working copy
append
- append to the working copy name of the original
createStartRepository
protected File createStartRepository(String testName)
throws Exception
Create the repository for the beginning of the test
testName
- the name of the test
createStartWorkingCopy
protected File createStartWorkingCopy(File repos,
String testName)
throws Exception
Create the working copy for the beginning of the test
repos
- the repository directorytestName
- the name of the test
- the directory of the working copy
getRepository
public File getRepository()
Return the directory of the repository
- the repository directory name
getRepositoryPath
public String getRepositoryPath()
Return the name of the directory of the repository
- the name of repository directory
getUrl
public String getUrl()
Returns the url of repository
getWCPath
public String getWCPath()
Return the working copy directory name
- the name of the working copy directory
getWc
public WC getWc()
Returns the expected working copy content
- the expected working copy content
getWorkingCopy
public File getWorkingCopy()
Return the working copy directory
- the working copy directory