org.tigris.subversion.javahl.tests

Class SVNTests.OneTest

protected class SVNTests.OneTest extends Object

this internal class represent the repository and the working copy for one test.
Field Summary
protected Filerepository
the file name of repository (used by SVNAdmin)
protected Stringurl
the url of the repository (used by SVNClient)
protected WCwc
the expected layout of the working copy after the next subversion command
protected FileworkingCopy
the file name of the working copy directory
Constructor Summary
protected OneTest()
build a new test setup with a new repository, a new working and a new expected working layout
Method Summary
voidcheckStatus()
Check if the working copy has the expected status
protected SVNTests.OneTestcopy(String append)
Copy the working copy and the expected working copy layout for tests which need multiple working copy
protected FilecreateStartRepository(String testName)
Create the repository for the beginning of the test
protected FilecreateStartWorkingCopy(File repos, String testName)
Create the working copy for the beginning of the test
FilegetRepository()
Return the directory of the repository
StringgetRepositoryPath()
Return the name of the directory of the repository
StringgetUrl()
Returns the url of repository
WCgetWc()
Returns the expected working copy content
StringgetWCPath()
Return the working copy directory name
FilegetWorkingCopy()
Return the working copy directory

Field Detail

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 Detail

OneTest

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

Throws: Exception

Method Detail

checkStatus

public void checkStatus()
Check if the working copy has the expected status

Throws: Exception

copy

protected SVNTests.OneTest copy(String append)
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.

Throws: Exception

createStartRepository

protected File createStartRepository(String testName)
Create the repository for the beginning of the test

Parameters: testName the name of the test

Returns: the repository directory

Throws: Exception

createStartWorkingCopy

protected File createStartWorkingCopy(File repos, String testName)
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

Throws: Exception

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

getWc

public WC getWc()
Returns the expected working copy content

Returns: the expected working copy content

getWCPath

public String getWCPath()
Return the working copy directory name

Returns: the name of the working copy directory

getWorkingCopy

public File getWorkingCopy()
Return the working copy directory

Returns: the working copy directory