|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
org.tigris.subversion.javahl.tests.SVNTests
public class SVNTests
common base class for the javahl binding tests
Nested Class Summary | |
---|---|
class |
SVNTests.FileInputer
internal class which implements the InputInterface to read the data from a file. |
class |
SVNTests.FileOutputer
internal class which implements the OutputInterface to write the data to a file. |
class |
SVNTests.IgnoreOutputer
internal class implements the OutputInterface, but ignores the data |
protected class |
SVNTests.OneTest
this internal class represent the repository and the working copy for one test. |
Field Summary | |
---|---|
protected SVNAdmin |
admin
our admin object, mostly used for creating,dumping and loading repositories |
protected SVNClientInterface |
client
the subversion client, what we want to test. |
protected java.io.File |
conf
the directory "config" in the localTmp. |
protected java.util.Map |
expectedCommitItems
the map of all items expected to be received by the callback for the log message. |
protected java.io.File |
greekDump
the file in which the sample repository has been dumped. |
protected java.io.File |
greekRepos
the directory of the sample repository. |
protected WC |
greekWC
the initial working copy of the sample repository. |
protected java.io.File |
localTmp
the directory "svn-test-work/local_tmp" in the rootDir. |
protected java.lang.String |
logMessage
standard log message. |
protected java.io.File |
repositories
the directory "repositories" in the rootDir. |
protected java.io.File |
rootDir
the root directory. |
protected static java.lang.String |
rootDirectoryName
common root directory for all tests. |
protected static java.lang.String |
rootUrl
common root URL for all tests. |
protected java.lang.String |
testBaseName
the base name of the test. |
protected static int |
testCounter
this counter will be incremented for every test in one suite (test class) |
protected java.io.File |
workingCopies
the directory "working_copies" in the rootDir. |
Constructor Summary | |
---|---|
protected |
SVNTests()
Initialize one test object |
Method Summary | |
---|---|
protected void |
addExpectedCommitItem(java.lang.String workingCopyPath,
java.lang.String baseUrl,
java.lang.String itemPath,
int nodeKind,
int stateFlags)
add another commit item expected during the callback for the log message. |
protected java.lang.String |
getAdminDirectoryName()
Intended to be called as part of test method execution (post- setUp() ). |
static void |
main(java.lang.String[] args)
Main method, will call all tests of all test classes |
protected java.lang.String |
makeReposUrl(java.io.File file)
Create the url for the repository to be used for the tests. |
protected static void |
processArgs(java.lang.String[] args)
retrieve the root directory and the root url from the command line arguments |
protected void |
removeDirectoryWithContent(java.io.File localTmp)
Remove a directory with all files and directories it may contain. |
protected void |
setUp()
Standard initialization of one test |
static TestSuite |
suite()
build a test suite with all test of all test classes known |
protected void |
tearDown()
cleanup after one test |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SVNAdmin admin
protected SVNClientInterface client
protected java.io.File rootDir
protected java.lang.String testBaseName
protected static int testCounter
protected java.io.File greekDump
protected java.io.File greekRepos
protected WC greekWC
protected java.io.File localTmp
protected java.io.File repositories
protected java.io.File workingCopies
protected java.io.File conf
protected java.lang.String logMessage
protected java.util.Map expectedCommitItems
protected static java.lang.String rootDirectoryName
protected static java.lang.String rootUrl
Constructor Detail |
---|
protected SVNTests()
Method Detail |
---|
protected static void processArgs(java.lang.String[] args)
args
- command line argumentspublic static void main(java.lang.String[] args)
args
- command line argumentspublic static TestSuite suite()
protected void setUp() throws java.lang.Exception
java.lang.Exception
protected void removeDirectoryWithContent(java.io.File localTmp)
localTmp
- protected void tearDown() throws java.lang.Exception
java.lang.Exception
protected java.lang.String makeReposUrl(java.io.File file)
file
- the directory of the repository
protected void addExpectedCommitItem(java.lang.String workingCopyPath, java.lang.String baseUrl, java.lang.String itemPath, int nodeKind, int stateFlags)
workingCopyPath
- the path of the of the workingbaseUrl
- the url for the repositoryitemPath
- the path of the item relative the working copynodeKind
- expected node kind (dir or file or none)stateFlags
- expected commit state flags
(see CommitItemStateFlags)protected java.lang.String getAdminDirectoryName()
setUp()
). Calls fail()
if the
directory name cannot be determined.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |