org.tigris.subversion.javahl.tests

Class SVNTests.OneTest

Enclosing Class:
SVNTests

protected class SVNTests.OneTest
extends java.lang.Object

this internal class represent the repository and the working copy for one test.

Field Summary

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

Constructor Summary

OneTest()
build a new test setup with a new repository, a new working and a new expected working layout

Method Summary

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

Field Details

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

Constructor Details

OneTest

protected OneTest()
            throws Exception
build a new test setup with a new repository, a new working and a new expected working layout

Method Details

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
Parameters:
append - append to the working copy name of the original
Returns:
second test object.

createStartRepository

protected File createStartRepository(String testName)
            throws Exception
Create the repository for the beginning of the test
Parameters:
testName - the name of the test
Returns:
the repository directory

createStartWorkingCopy

protected File createStartWorkingCopy(File repos,
                                      String testName)
            throws Exception
Create the working copy for the beginning of the test
Parameters:
repos - the repository directory
testName - the name of the test
Returns:
the directory of the working copy

getRepository

public File getRepository()
Return the directory of the repository
Returns:
the repository directory name

getRepositoryPath

public String getRepositoryPath()
Return the name of the directory of the repository
Returns:
the name of repository directory

getUrl

public String getUrl()
Returns the url of repository
Returns:
the url

getWCPath

public String getWCPath()
Return the working copy directory name
Returns:
the name of the working copy directory

getWc

public WC getWc()
Returns the expected working copy content
Returns:
the expected working copy content

getWorkingCopy

public File getWorkingCopy()
Return the working copy directory
Returns:
the working copy directory