org.apache.maven.scm.provider.accurev.command.checkout
Class AccuRevCheckOutCommandTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.scm.ScmTestCase
                  extended by org.apache.maven.scm.provider.accurev.command.AbstractAccuRevCommandTest
                      extended by org.apache.maven.scm.provider.accurev.command.checkout.AccuRevCheckOutCommandTest
All Implemented Interfaces:
junit.framework.Test

public class AccuRevCheckOutCommandTest
extends AbstractAccuRevCommandTest

checkout a revision or branch (stream/tranid)-> make workspace. If basedir is empty and represents the top of an existing workspace, then reparent the workspace if necessary and repopulate missing file, and update If basedir is not empty or is a subdirectory of an existing workspace throw exception. Otherwise make a workspace and update Special case for release plugin - checkout a tag to an ignored and empty subdirectory of an existing workspace. Treat as an export. deactivate the workspace, export with pop -v -L then reactivate the workspace.

Author:
ggardner

Field Summary
 
Fields inherited from class org.apache.maven.scm.provider.accurev.command.AbstractAccuRevCommandTest
accurev, basedir, info, repo, sequence
 
Fields inherited from class org.apache.maven.scm.ScmTestCase
GMT_TIME_ZONE
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
container
 
Constructor Summary
AccuRevCheckOutCommandTest()
           
 
Method Summary
 void testCheckout()
           
 void testCheckoutFailure()
           
 void testCheckoutToVersionExistingWorkspace()
           
 void testCheckoutToVersionNewWorkspace()
           
 void testReCheckoutExistingWorkspaceDifferentBasis()
           
 void testReCheckoutExistingWorkspaceSameBasis()
           
 void testReCheckoutSubdirectoryOfExistingWorkspaceThrowsException()
           
 
Methods inherited from class org.apache.maven.scm.provider.accurev.command.AbstractAccuRevCommandTest
getCustomConfiguration, getLogger, setUp
 
Methods inherited from class org.apache.maven.scm.ScmTestCase
assertCommandLine, assertFile, assertPath, assertResultIsSuccess, execute, getAssertionCopy, getDate, getDate, getDate, getModule, getRepository, getRepositoryRoot, getScmFileSet, getScmManager, getUpdatingCopy, getWorkingCopy, getWorkingDirectory, isSystemCmd, makeDirectory, makeFile, makeFile, makeScmRepository, printOutputError, setDebugExecute
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccuRevCheckOutCommandTest

public AccuRevCheckOutCommandTest()
Method Detail

testCheckout

public void testCheckout()
                  throws Exception
Throws:
Exception

testCheckoutFailure

public void testCheckoutFailure()
                         throws Exception
Throws:
Exception

testReCheckoutExistingWorkspaceSameBasis

public void testReCheckoutExistingWorkspaceSameBasis()
                                              throws Exception
Throws:
Exception

testReCheckoutExistingWorkspaceDifferentBasis

public void testReCheckoutExistingWorkspaceDifferentBasis()
                                                   throws Exception
Throws:
Exception

testReCheckoutSubdirectoryOfExistingWorkspaceThrowsException

public void testReCheckoutSubdirectoryOfExistingWorkspaceThrowsException()
                                                                  throws Exception
Throws:
Exception

testCheckoutToVersionNewWorkspace

public void testCheckoutToVersionNewWorkspace()
                                       throws Exception
Throws:
Exception

testCheckoutToVersionExistingWorkspace

public void testCheckoutToVersionExistingWorkspace()
                                            throws Exception
Throws:
Exception


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.