org.tigris.subversion.javahl.tests
Class SVNTests.OneTest

java.lang.Object
  extended by org.tigris.subversion.javahl.tests.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  java.io.File repository
          the file name of repository (used by SVNAdmin)
protected  java.lang.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  java.io.File workingCopy
          the file name of the working copy directory
 
Constructor Summary
protected SVNTests.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(java.lang.String append)
          Copy the working copy and the expected working copy layout for tests which need multiple working copy
protected  java.io.File createStartRepository(java.lang.String testName)
          Create the repository for the beginning of the test
protected  java.io.File createStartWorkingCopy(java.io.File repos, java.lang.String testName)
          Create the working copy for the beginning of the test
 java.io.File getRepository()
          Return the directory of the repository
 java.lang.String getRepositoryPath()
          Return the name of the directory of the repository
 java.lang.String getUrl()
          Returns the url of repository
 WC getWc()
          Returns the expected working copy content
 java.lang.String getWCPath()
          Return the working copy directory name
 java.io.File getWorkingCopy()
          Return the working copy directory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repository

protected java.io.File repository
the file name of repository (used by SVNAdmin)


workingCopy

protected java.io.File workingCopy
the file name of the working copy directory


url

protected java.lang.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

Constructor Detail

SVNTests.OneTest

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

Throws:
java.lang.Exception
Method Detail

copy

protected SVNTests.OneTest copy(java.lang.String append)
                         throws java.lang.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.
Throws:
java.lang.Exception

getRepository

public java.io.File getRepository()
Return the directory of the repository

Returns:
the repository directory name

getRepositoryPath

public java.lang.String getRepositoryPath()
Return the name of the directory of the repository

Returns:
the name of repository directory

getWorkingCopy

public java.io.File getWorkingCopy()
Return the working copy directory

Returns:
the working copy directory

getWCPath

public java.lang.String getWCPath()
Return the working copy directory name

Returns:
the name of the working copy directory

getUrl

public java.lang.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

createStartRepository

protected java.io.File createStartRepository(java.lang.String testName)
                                      throws java.lang.Exception
Create the repository for the beginning of the test

Parameters:
testName - the name of the test
Returns:
the repository directory
Throws:
java.lang.Exception

createStartWorkingCopy

protected java.io.File createStartWorkingCopy(java.io.File repos,
                                              java.lang.String testName)
                                       throws java.lang.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
Throws:
java.lang.Exception

checkStatus

public void checkStatus()
                 throws java.lang.Exception
Check if the working copy has the expected status

Throws:
java.lang.Exception