org.apache.maven.wagon
Class WagonTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.codehaus.plexus.PlexusTestCase
              extended byorg.apache.maven.wagon.WagonTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class WagonTestCase
extends org.codehaus.plexus.PlexusTestCase

Version:
$Id: WagonTestCase.java 314922 2005-10-12 14:16:36Z brett $
Author:
Jason van Zyl

Field Summary
protected  java.io.File artifactDestFile
           
protected  java.io.File artifactSourceFile
           
protected  org.apache.maven.wagon.observers.ChecksumObserver checksumObserver
           
protected  java.io.File destFile
           
protected  org.apache.maven.wagon.repository.Repository localRepository
           
protected  java.lang.String localRepositoryPath
           
protected static java.lang.String POM
           
protected  java.lang.String resource
           
protected  java.io.File sourceFile
           
protected  org.apache.maven.wagon.repository.Repository testRepository
           
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
WagonTestCase()
           
 
Method Summary
protected  org.apache.maven.wagon.repository.Repository createFileRepository(java.lang.String url)
           
protected  void customizeContext()
           
protected  void fileRoundTripTesting()
           
protected  org.apache.maven.wagon.authentication.AuthenticationInfo getAuthInfo()
           
protected  void getFile()
           
protected  org.apache.maven.wagon.repository.RepositoryPermissions getPermissions()
           
protected abstract  java.lang.String getProtocol()
           
protected abstract  java.lang.String getTestRepositoryUrl()
           
protected  org.apache.maven.wagon.Wagon getWagon()
           
private  void message(java.lang.String message)
           
protected  void putFile()
           
protected  void setUp()
           
protected  void setupRepositories()
           
protected  void setupWagonTestingFixtures()
           
protected  void tearDownWagonTestingFixtures()
           
 void testFailedGet()
           
 void testWagon()
           
 void testWagonPutDirectory()
           
private  void writeTestFile(java.lang.String child)
           
 
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
 

Field Detail

POM

protected static java.lang.String POM

localRepository

protected org.apache.maven.wagon.repository.Repository localRepository

testRepository

protected org.apache.maven.wagon.repository.Repository testRepository

localRepositoryPath

protected java.lang.String localRepositoryPath

sourceFile

protected java.io.File sourceFile

destFile

protected java.io.File destFile

resource

protected java.lang.String resource

artifactSourceFile

protected java.io.File artifactSourceFile

artifactDestFile

protected java.io.File artifactDestFile

checksumObserver

protected org.apache.maven.wagon.observers.ChecksumObserver checksumObserver
Constructor Detail

WagonTestCase

public WagonTestCase()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

getTestRepositoryUrl

protected abstract java.lang.String getTestRepositoryUrl()
                                                  throws java.io.IOException
Throws:
java.io.IOException

getProtocol

protected abstract java.lang.String getProtocol()

setupRepositories

protected void setupRepositories()
                          throws java.lang.Exception
Throws:
java.lang.Exception

customizeContext

protected void customizeContext()
                         throws java.lang.Exception
Throws:
java.lang.Exception

setupWagonTestingFixtures

protected void setupWagonTestingFixtures()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

tearDownWagonTestingFixtures

protected void tearDownWagonTestingFixtures()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getAuthInfo

protected org.apache.maven.wagon.authentication.AuthenticationInfo getAuthInfo()

getPermissions

protected org.apache.maven.wagon.repository.RepositoryPermissions getPermissions()

getWagon

protected org.apache.maven.wagon.Wagon getWagon()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

message

private void message(java.lang.String message)

testWagon

public void testWagon()
               throws java.lang.Exception
Throws:
java.lang.Exception

testWagonPutDirectory

public void testWagonPutDirectory()
                           throws java.lang.Exception
Throws:
java.lang.Exception

writeTestFile

private void writeTestFile(java.lang.String child)
                    throws java.io.IOException
Throws:
java.io.IOException

testFailedGet

public void testFailedGet()
                   throws java.lang.Exception
Throws:
java.lang.Exception

putFile

protected void putFile()
                throws java.lang.Exception
Throws:
java.lang.Exception

getFile

protected void getFile()
                throws java.lang.Exception
Throws:
java.lang.Exception

fileRoundTripTesting

protected void fileRoundTripTesting()
                             throws java.lang.Exception
Throws:
java.lang.Exception

createFileRepository

protected org.apache.maven.wagon.repository.Repository createFileRepository(java.lang.String url)