org.apache.maven.wagon.providers.file
Class FileWagonTest

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

public class FileWagonTest
extends StreamingWagonTestCase

Version:
$Id: FileWagonTest.java 724228 2008-12-08 01:22:01Z dantran $
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
FileWagonTest()
           
 
Method Summary
protected  long getExpectedLastModifiedOnGet(Repository repository, org.apache.maven.wagon.resource.Resource resource)
           
protected  String getProtocol()
           
protected  String getTestRepositoryUrl()
           
 void testNullFileWagon()
          This test is introduced to allow for null file wagons.
 void testResourceExists()
           
 
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, getAuthInfo, getExpectedContentLengthOnGet, getFile, getPermissions, getWagon, message, putFile, putFile, replaceMockForGet, replayMockForPut, setUp, setupGetIfNewerTest, setupRepositories, setupWagonTestingFixtures, supportsGetIfNewer, tearDownWagonTestingFixtures, 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

FileWagonTest

public FileWagonTest()
Method Detail

getProtocol

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

getTestRepositoryUrl

protected String getTestRepositoryUrl()
                               throws IOException
Specified by:
getTestRepositoryUrl in class WagonTestCase
Throws:
IOException

testNullFileWagon

public void testNullFileWagon()
                       throws ConnectionException,
                              AuthenticationException
This test is introduced to allow for null file wagons. Which is used heavily in the maven component ITs.

Throws:
ConnectionException
AuthenticationException

getExpectedLastModifiedOnGet

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

testResourceExists

public void testResourceExists()
                        throws Exception
Throws:
Exception


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