org.tigris.subversion.javahl.tests

Class BasicTests


public class BasicTests
extends SVNTests

Tests the basic functionality of javahl binding (inspired by the tests in subversion/tests/cmdline/basic_tests.py).

Nested Class Summary

Nested classes/interfaces inherited from class org.tigris.subversion.javahl.tests.SVNTests

SVNTests.FileInputer, SVNTests.FileOutputer, SVNTests.IgnoreOutputer, SVNTests.OneTest

Field Summary

static String
testName
base name of all our tests

Fields inherited from class org.tigris.subversion.javahl.tests.SVNTests

admin, client, conf, expectedCommitItems, greekDump, greekRepos, greekWC, localTmp, logMessage, repositories, rootDir, rootDirectoryName, rootUrl, testBaseName, testCounter, workingCopies

Constructor Summary

BasicTests()
Initialize the testBaseName and the testCounter, if this is the first test of this class

Method Summary

static void
main(String[] args)
Main method to run tests standalone
static TestSuite
suite()
Build a test suite of all tests of this class
void
testBasicAddIgnores()
test the basis SVNClient.add functionality with files that should be ignored
void
testBasicCancelOperation()
void
testBasicCat()
test the basic SVNClient.fileContent functionality
void
testBasicCatStream()
test the basic SVNClient.fileContent functionality
void
testBasicCheckout()
test the basic SVNClient.checkout functionality
void
testBasicCheckoutDeleted()
void
testBasicCleanup()
test the basic SVNClient.cleanup functionality
void
testBasicCommit()
test the basic SVNClient.commit functionality
void
testBasicConflict()
test the basic SVNClient.update functionality with concurrent changes in the repository and the working copy that generate conflicts
void
testBasicDelete()
test the basic SVNClient.remove functionality
void
testBasicImport()
Test the basic SVNClient.import functionality
void
testBasicImportIgnores()
test the basis SVNClient.import functionality with files that should be ignored
void
testBasicInfo()
test the basic SVNClient.info functionality
void
testBasicInfo2()
test the baisc SVNClient.info2 functionality
void
testBasicIsAdminDirectory()
test the basic SVNClient.isAdminDirectory functionality
void
testBasicLocking()
test the baisc SVNClient locking functionality
void
testBasicLogMessage()
test the basic SVNClient.logMessage functionality
void
testBasicLs()
test the basic SVNClient.list functionality
void
testBasicMerge()
test the basic SVNClient.merge functionality
void
testBasicMergingUpdate()
test the basic SVNClient.update functionality with concurrent changes in the repository and the working copy
void
testBasicMkdirUrl()
test basic SVNClient.mkdir with url parameter functionality
void
testBasicNodeKindChange()
Test if Subversion will detect the change of a file to a direcory
void
testBasicRevert()
Test the basic SVNClient.revert functionality
void
testBasicStatus()
test the basic SVNClient.status functionality
void
testBasicSwitch()
thest the basic SVNClient.switch functionality
void
testBasicUpdate()
test the basic SVNClient.update functionality
void
testBasicVersionInfo()
test the basic SVNClient.getVersionInfo functionality
void
testPathValidation()
Tests Subversion path validation.
void
testVersion()
Test SVNClient.getVersion().

Methods inherited from class org.tigris.subversion.javahl.tests.SVNTests

addExpectedCommitItem, getAdminDirectoryName, main, makeReposUrl, processArgs, removeDirectoryWithContent, setUp, suite, tearDown

Field Details

testName

public static final String testName
base name of all our tests

Constructor Details

BasicTests

public BasicTests()
Initialize the testBaseName and the testCounter, if this is the first test of this class

Method Details

main

public static void main(String[] args)
Main method to run tests standalone
Overrides:
main in interface SVNTests
Parameters:
args - command line arguments to specify root directory and root url

suite

public static TestSuite suite()
Build a test suite of all tests of this class
Overrides:
suite in interface SVNTests
Returns:
the new test suite

testBasicAddIgnores

public void testBasicAddIgnores()
            throws Throwable
test the basis SVNClient.add functionality with files that should be ignored

testBasicCancelOperation

public void testBasicCancelOperation()
            throws Throwable

testBasicCat

public void testBasicCat()
            throws Throwable
test the basic SVNClient.fileContent functionality

testBasicCatStream

public void testBasicCatStream()
            throws Throwable
test the basic SVNClient.fileContent functionality

testBasicCheckout

public void testBasicCheckout()
            throws Throwable
test the basic SVNClient.checkout functionality

testBasicCheckoutDeleted

public void testBasicCheckoutDeleted()
            throws Throwable

testBasicCleanup

public void testBasicCleanup()
            throws Throwable
test the basic SVNClient.cleanup functionality

testBasicCommit

public void testBasicCommit()
            throws Throwable
test the basic SVNClient.commit functionality

testBasicConflict

public void testBasicConflict()
            throws Throwable
test the basic SVNClient.update functionality with concurrent changes in the repository and the working copy that generate conflicts

testBasicDelete

public void testBasicDelete()
            throws Throwable
test the basic SVNClient.remove functionality

testBasicImport

public void testBasicImport()
            throws Throwable
Test the basic SVNClient.import functionality

testBasicImportIgnores

public void testBasicImportIgnores()
            throws Throwable
test the basis SVNClient.import functionality with files that should be ignored

testBasicInfo

public void testBasicInfo()
            throws Throwable
test the basic SVNClient.info functionality

testBasicInfo2

public void testBasicInfo2()
            throws Throwable
test the baisc SVNClient.info2 functionality
Since:
1.2

testBasicIsAdminDirectory

public void testBasicIsAdminDirectory()
            throws Throwable
test the basic SVNClient.isAdminDirectory functionality
Since:
1.2

testBasicLocking

public void testBasicLocking()
            throws Throwable
test the baisc SVNClient locking functionality
Since:
1.2

testBasicLogMessage

public void testBasicLogMessage()
            throws Throwable
test the basic SVNClient.logMessage functionality

testBasicLs

public void testBasicLs()
            throws Throwable
test the basic SVNClient.list functionality

testBasicMerge

public void testBasicMerge()
            throws Throwable
test the basic SVNClient.merge functionality
Since:
1.2

testBasicMergingUpdate

public void testBasicMergingUpdate()
            throws Throwable
test the basic SVNClient.update functionality with concurrent changes in the repository and the working copy

testBasicMkdirUrl

public void testBasicMkdirUrl()
            throws Throwable
test basic SVNClient.mkdir with url parameter functionality

testBasicNodeKindChange

public void testBasicNodeKindChange()
            throws Throwable
Test if Subversion will detect the change of a file to a direcory

testBasicRevert

public void testBasicRevert()
            throws Throwable
Test the basic SVNClient.revert functionality

testBasicStatus

public void testBasicStatus()
            throws Throwable
test the basic SVNClient.status functionality

testBasicSwitch

public void testBasicSwitch()
            throws Throwable
thest the basic SVNClient.switch functionality

testBasicUpdate

public void testBasicUpdate()
            throws Throwable
test the basic SVNClient.update functionality

testBasicVersionInfo

public void testBasicVersionInfo()
            throws Throwable
test the basic SVNClient.getVersionInfo functionality
Since:
1.2

testPathValidation

public void testPathValidation()
            throws Throwable
Tests Subversion path validation.

testVersion

public void testVersion()
            throws Throwable
Test SVNClient.getVersion().