org.tigris.subversion.javahl.tests
Class BasicTests

java.lang.Object
  extended by TestCase
      extended by org.tigris.subversion.javahl.tests.SVNTests
          extended by org.tigris.subversion.javahl.tests.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 java.lang.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(java.lang.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, makeReposUrl, processArgs, removeDirectoryWithContent, setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testName

public static final java.lang.String testName
base name of all our tests

See Also:
Constant Field Values
Constructor Detail

BasicTests

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

Method Detail

suite

public static TestSuite suite()
Build a test suite of all tests of this class

Returns:
the new test suite

main

public static void main(java.lang.String[] args)
Main method to run tests standalone

Parameters:
args - command line arguments to specify root directory and root url

testVersion

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

Throws:
java.lang.Throwable

testPathValidation

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

Throws:
java.lang.Throwable

testBasicCheckout

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

Throws:
java.lang.Throwable

testBasicStatus

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

Throws:
java.lang.Throwable

testBasicCommit

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

Throws:
java.lang.Throwable

testBasicUpdate

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

Throws:
java.lang.Throwable

testBasicMkdirUrl

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

Throws:
java.lang.Throwable

testBasicMergingUpdate

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

Throws:
java.lang.Throwable

testBasicConflict

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

Throws:
java.lang.Throwable

testBasicCleanup

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

Throws:
java.lang.Throwable

testBasicRevert

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

Throws:
java.lang.Throwable

testBasicSwitch

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

Throws:
java.lang.Throwable

testBasicDelete

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

Throws:
java.lang.Throwable

testBasicCheckoutDeleted

public void testBasicCheckoutDeleted()
                              throws java.lang.Throwable
Throws:
java.lang.Throwable

testBasicNodeKindChange

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

Throws:
java.lang.Throwable

testBasicImport

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

Throws:
java.lang.Throwable

testBasicCat

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

Throws:
java.lang.Throwable

testBasicCatStream

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

Throws:
java.lang.Throwable

testBasicLs

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

Throws:
java.lang.Throwable

testBasicAddIgnores

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

Throws:
java.lang.Throwable

testBasicImportIgnores

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

Throws:
java.lang.Throwable

testBasicInfo

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

Throws:
java.lang.Throwable

testBasicLogMessage

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

Throws:
java.lang.Throwable

testBasicVersionInfo

public void testBasicVersionInfo()
                          throws java.lang.Throwable
test the basic SVNClient.getVersionInfo functionality

Throws:
java.lang.Throwable
Since:
1.2

testBasicLocking

public void testBasicLocking()
                      throws java.lang.Throwable
test the baisc SVNClient locking functionality

Throws:
java.lang.Throwable
Since:
1.2

testBasicInfo2

public void testBasicInfo2()
                    throws java.lang.Throwable
test the baisc SVNClient.info2 functionality

Throws:
java.lang.Throwable
Since:
1.2

testBasicMerge

public void testBasicMerge()
                    throws java.lang.Throwable
test the basic SVNClient.merge functionality

Throws:
java.lang.Throwable
Since:
1.2

testBasicIsAdminDirectory

public void testBasicIsAdminDirectory()
                               throws java.lang.Throwable
test the basic SVNClient.isAdminDirectory functionality

Throws:
java.lang.Throwable
Since:
1.2

testBasicCancelOperation

public void testBasicCancelOperation()
                              throws java.lang.Throwable
Throws:
java.lang.Throwable