org.apache.maven.wagon
public abstract class WagonTestCase extends PlexusTestCase
Version: $Id: WagonTestCase.java 477175 2006-11-20 13:50:29Z brett $
Field Summary | |
---|---|
protected File | artifactDestFile |
protected File | artifactSourceFile |
protected ChecksumObserver | checksumObserver |
protected File | destFile |
protected Repository | localRepository |
protected String | localRepositoryPath |
protected static String | POM |
protected String | resource |
protected File | sourceFile |
protected Repository | testRepository |
Method Summary | |
---|---|
protected void | assertNotExists(Wagon wagon, String resourceName)
Assert that a resource does not exist in the remote wagon system
|
protected void | assertResourcesAreInRemoteSide(Wagon wagon, List resourceNames) |
protected void | createDirectory(Wagon wagon, String resourceToCreate, String dirName)
Create a directory with a resource and check that the other ones don't exist
|
protected Repository | createFileRepository(String url) |
protected void | customizeContext() |
protected void | fileRoundTripTesting() |
protected AuthenticationInfo | getAuthInfo() |
protected void | getFile() |
protected RepositoryPermissions | getPermissions() |
protected abstract String | getProtocol()
Protocol id of the Wagon to use, eg. |
protected abstract String | getTestRepositoryUrl()
URL of the repository. |
protected Wagon | getWagon() |
void | message(String message) |
protected void | putFile(String resourceName, String testFileName, String content) |
protected void | putFile() |
protected void | setupRepositories() |
protected void | setupWagonTestingFixtures() |
protected void | setUp() |
protected void | tearDownWagonTestingFixtures() |
void | testFailedGet() |
void | testWagon() |
void | testWagonGetFileList()
Test Wagon#getFileList(String).
|
void | testWagonGetFileListWhenDirectoryDoesNotExist()
Test Wagon#getFileList(String) when the directory does not exist.
|
void | testWagonPutDirectory() |
void | testWagonPutDirectoryDeepDestination()
Test for putting a directory with a destination that multiple directories deep,
all of which haven't been created.
|
void | testWagonPutDirectoryWhenDirectoryAlreadyExists()
Test that when putting a directory that already exists new files get also copied
|
void | testWagonResourceExists()
Test for an existing resource.
|
void | testWagonResourceNotExists()
Test for an invalid resource.
|
void | writeTestFile(String child) |
Parameters: wagon wagon to get the resource from resourceName name of the resource
Throws: IOException if a temp file can't be created AuthorizationException TransferFailedException
Since: 1.0-beta-1
Parameters: wagon resourceToCreate name of the resource to be created dirName directory name to create
Throws: Exception
scp
, ftp
Returns: the protocol id
Throws: Exception
Since: 1.0-beta-2
Throws: Exception
Since: 1.0-beta-2
Throws: Exception
Since: 1.0-beta-2
Throws: Exception
Since: 1.0-beta-1
Throws: Exception
Since: 1.0-beta-2
Throws: Exception
Since: 1.0-beta-2