| 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 :protected class OneTest | |
Inner Class :class MyCommitItem | |
Inner Class :class MyNotifier implements Notify2 | |
Constructor Summary | |
protected | SVNTests() |
admin | protected SVNAdmin admin(Code) | | our admin object, mostly used for creating,dumping and loading
repositories
|
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.
|
SVNTests | protected SVNTests()(Code) | | Initialize one test object
|
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 - |
suite | public static TestSuite suite()(Code) | | build a test suite with all test of all test classes known
complete test suite |
|
|