org.apache.maven.wagon.providers.ftp
Class FtpWagonTest

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.ftp.FtpWagonTest
All Implemented Interfaces:
junit.framework.Test

public class FtpWagonTest
extends StreamingWagonTestCase

Version:
$Id: FtpWagonTest.java 680997 2008-07-30 12:14:49Z brett $
Author:
Michal Maczka

Field Summary
 
Fields inherited from class org.apache.maven.wagon.WagonTestCase
artifactDestFile, artifactSourceFile, checksumObserver, destFile, localRepository, localRepositoryPath, mockTransferListener, mockTransferListenerControl, POM, resource, sourceFile, testRepository
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
FtpWagonTest()
           
 
Method Summary
protected  void createDirectory(Wagon wagon, String resourceToCreate, String dirName)
           
 AuthenticationInfo getAuthInfo()
           
protected  long getExpectedLastModifiedOnGet(Repository repository, org.apache.maven.wagon.resource.Resource resource)
           
protected  String getProtocol()
           
protected  String getTestRepositoryUrl()
           
protected  void setupWagonTestingFixtures()
           
protected  void tearDownWagonTestingFixtures()
           
 void testDefaultUserName()
           
 void testNoPassword()
           
 
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, createFileRepository, createTransferEvent, customizeContext, disconnectWagon, fileRoundTripTesting, getExpectedContentLengthOnGet, getFile, getPermissions, getWagon, message, putFile, putFile, replaceMockForGet, replayMockForPut, setUp, setupGetIfNewerTest, setupRepositories, supportsGetIfNewer, testFailedGet, testFailedGetIfNewer, testWagon, testWagonGetFileList, testWagonGetFileListWhenDirectoryDoesNotExist, testWagonGetIfNewerIsNewer, testWagonGetIfNewerIsOlder, testWagonGetIfNewerIsSame, testWagonPutDirectory, testWagonPutDirectoryDeepDestination, testWagonPutDirectoryForDot, testWagonPutDirectoryWhenDirectoryAlreadyExists, testWagonResourceExists, testWagonResourceNotExists, verifyMock
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
createContainerInstance, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FtpWagonTest

public FtpWagonTest()
Method Detail

getProtocol

protected String getProtocol()
Specified by:
getProtocol in class WagonTestCase

setupWagonTestingFixtures

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

createDirectory

protected void createDirectory(Wagon wagon,
                               String resourceToCreate,
                               String dirName)
                        throws Exception
Overrides:
createDirectory in class WagonTestCase
Throws:
Exception

tearDownWagonTestingFixtures

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

getTestRepositoryUrl

protected String getTestRepositoryUrl()
Specified by:
getTestRepositoryUrl in class WagonTestCase

getAuthInfo

public AuthenticationInfo getAuthInfo()
Overrides:
getAuthInfo in class WagonTestCase

getExpectedLastModifiedOnGet

protected long getExpectedLastModifiedOnGet(Repository repository,
                                            org.apache.maven.wagon.resource.Resource resource)
Overrides:
getExpectedLastModifiedOnGet in class WagonTestCase

testNoPassword

public void testNoPassword()
                    throws Exception
Throws:
Exception

testDefaultUserName

public void testDefaultUserName()
                         throws Exception
Throws:
Exception


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