org.apache.maven.wagon.providers.ssh
Class AbstractEmbeddedScpWagonTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.wagon.WagonTestCase
                  extended by org.apache.maven.wagon.StreamingWagonTestCase
                      extended by org.apache.maven.wagon.providers.ssh.AbstractEmbeddedScpWagonTest
All Implemented Interfaces:
Test

public abstract class AbstractEmbeddedScpWagonTest
extends StreamingWagonTestCase

Version:
$Id: AbstractEmbeddedScpWagonTest.java 1174085 2011-09-22 12:12:35Z olamy $
Author:
Michal Maczka

Field Summary
 
Fields inherited from class org.apache.maven.wagon.WagonTestCase
artifactDestFile, artifactSourceFile, checksumObserver, destFile, localRepository, localRepositoryPath, logger, mockTransferListener, mockTransferListenerControl, POM, resource, sourceFile, testRepository
 
Constructor Summary
AbstractEmbeddedScpWagonTest()
           
 
Method Summary
protected  AuthenticationInfo getAuthInfo()
           
protected  long getExpectedLastModifiedOnGet(Repository repository, Resource resource)
           
protected abstract  String getProtocol()
          Protocol id of the Wagon to use, eg.
protected  int getTestRepositoryPort()
          The number of the port which should get used to start the test server
 String getTestRepositoryUrl()
          URL of the repository.
protected  void setUp()
           
protected abstract  boolean supportsGetIfNewer()
           
protected  void tearDownWagonTestingFixtures()
           
 
Methods inherited from class org.apache.maven.wagon.StreamingWagonTestCase
streamRoundTripTesting, testFailedGetIfNewerToStream, testFailedGetToStream, testStreamingWagon, testWagonGetIfNewerToStreamIsNewer, testWagonGetIfNewerToStreamIsOlder, testWagonGetIfNewerToStreamIsSame
 
Methods inherited from class org.apache.maven.wagon.WagonTestCase
assertGetIfNewerTest, assertNotExists, assertResourcesAreInRemoteSide, connectWagon, createDirectory, createFileRepository, createTransferEvent, customizeContext, disconnectWagon, fileRoundTripTesting, getExpectedContentLengthOnGet, getFile, getPermissions, getWagon, message, putFile, putFile, replaceMockForGet, replayMockForPut, setupGetIfNewerTest, setupRepositories, setupWagonTestingFixtures, testFailedGet, testFailedGetIfNewer, testWagon, testWagonGetFileList, testWagonGetFileListWhenDirectoryDoesNotExist, testWagonGetIfNewerIsNewer, testWagonGetIfNewerIsOlder, testWagonGetIfNewerIsSame, testWagonPutDirectory, testWagonPutDirectoryDeepDestination, testWagonPutDirectoryForDot, testWagonPutDirectoryWhenDirectoryAlreadyExists, testWagonResourceExists, testWagonResourceNotExists, verifyMock
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, 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

AbstractEmbeddedScpWagonTest

public AbstractEmbeddedScpWagonTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class WagonTestCase
Throws:
Exception

tearDownWagonTestingFixtures

protected void tearDownWagonTestingFixtures()
                                     throws Exception
Overrides:
tearDownWagonTestingFixtures in class WagonTestCase
Throws:
Exception

getProtocol

protected abstract String getProtocol()
Description copied from class: WagonTestCase
Protocol id of the Wagon to use, eg. scp, ftp

Specified by:
getProtocol in class WagonTestCase
Returns:
the protocol id

getTestRepositoryPort

protected int getTestRepositoryPort()
Description copied from class: WagonTestCase
The number of the port which should get used to start the test server

Specified by:
getTestRepositoryPort in class WagonTestCase
Returns:
the port number for the test server

getTestRepositoryUrl

public String getTestRepositoryUrl()
Description copied from class: WagonTestCase
URL of the repository. For a complete test it should point to a non existing folder so we also check for the creation of new folders in the remote site.

return the URL of the repository as specified by Wagon syntax

Specified by:
getTestRepositoryUrl in class WagonTestCase

getAuthInfo

protected AuthenticationInfo getAuthInfo()
Overrides:
getAuthInfo in class WagonTestCase

getExpectedLastModifiedOnGet

protected long getExpectedLastModifiedOnGet(Repository repository,
                                            Resource resource)
Overrides:
getExpectedLastModifiedOnGet in class WagonTestCase

supportsGetIfNewer

protected abstract boolean supportsGetIfNewer()
Overrides:
supportsGetIfNewer in class WagonTestCase


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