org.apache.maven.wagon.providers.webdav
Class WebDavWagonTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.wagon.WagonTestCase
org.apache.maven.wagon.StreamingWagonTestCase
org.apache.maven.wagon.http.HttpWagonTestCase
org.apache.maven.wagon.providers.webdav.WebDavWagonTest
- All Implemented Interfaces:
- Test
- Direct Known Subclasses:
- WebDavsWagonTest
public class WebDavWagonTest
- extends HttpWagonTestCase
Fields inherited from class org.apache.maven.wagon.WagonTestCase |
artifactDestFile, artifactSourceFile, checksumObserver, destFile, localRepository, localRepositoryPath, logger, mockTransferListener, mockTransferListenerControl, POM, resource, sourceFile, testRepository |
Methods inherited from class org.apache.maven.wagon.http.HttpWagonTestCase |
addConnectors, createSecurityHandler, getRepositoryDirectory, getRepositoryUrl, getTestRepositoryPort, runTestSecuredGet, runTestSecuredPut, runTestSecuredPut, runTestSecuredPutFromStream, runTestSecuredResourceExists, setupWagonTestingFixtures, tearDownWagonTestingFixtures, testGet404, testGet500, testGetForbidden, testGzipGet, testHttpHeaders, testHttpHeadersWithCommonMethods, testNonSecuredPutFromStream, testProxiedRequest, testProxiedRequestWithAuthentication, testPut404, testPut500, testPutForbidden, testResourceExists404, testResourceExists500, testResourceExistsForbidden, testSecuredGet, testSecuredGetUnauthorized, testSecuredGetWrongPassword, testSecuredPut, testSecuredPutFromStream, testSecuredPutUnauthorized, testSecuredPutWrongPassword, testSecuredResourceExists, testSecuredResourceExistsUnauthorized, testSecuredResourceExistsWrongPassword, testWagonGetFileList |
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, supportsGetIfNewer, testFailedGet, testFailedGetIfNewer, testWagon, 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.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 |
WebDavWagonTest
public WebDavWagonTest()
getTestRepositoryUrl
protected String getTestRepositoryUrl()
throws IOException
- Specified by:
getTestRepositoryUrl
in class WagonTestCase
- Throws:
IOException
getProtocol
protected String getProtocol()
- Specified by:
getProtocol
in class WagonTestCase
createContext
protected void createContext(org.mortbay.jetty.Server server,
File repositoryDirectory)
throws IOException
- Overrides:
createContext
in class HttpWagonTestCase
- Throws:
IOException
getExpectedLastModifiedOnGet
protected long getExpectedLastModifiedOnGet(Repository repository,
Resource resource)
- Overrides:
getExpectedLastModifiedOnGet
in class HttpWagonTestCase
testGetURLDavHttp
public void testGetURLDavHttp()
- Tests the maven 2.0.x way to define a webdav URL without SSL.
testGetURLDavHttps
public void testGetURLDavHttps()
- Tests the maven 2.0.x way to define a webdav URL with SSL.
testGetURLDavUri
public void testGetURLDavUri()
- Tests the URI spec way of defining a webdav URL without SSL.
testGetURLDavUriWithSsl
public void testGetURLDavUriWithSsl()
- Tests the URI spec way of defining a webdav URL with SSL.
testGetURLDavPlusHttp
public void testGetURLDavPlusHttp()
- Tests the URI spec way of defining a webdav URL without SSL.
testGetURLDavPlusHttps
public void testGetURLDavPlusHttps()
- Tests the URI spec way of defining a webdav URL with SSL.
testMkdirs
public void testMkdirs()
throws Exception
- Throws:
Exception
testMkdirsWithNoBasedir
public void testMkdirsWithNoBasedir()
throws Exception
- Throws:
Exception
setHttpHeaders
protected void setHttpHeaders(StreamingWagon wagon,
Properties properties)
- Specified by:
setHttpHeaders
in class HttpWagonTestCase
testWagonWebDavGetFileList
public void testWagonWebDavGetFileList()
throws Exception
- Make sure wagon webdav can detect remote directory
- Throws:
Exception
supportPreemptiveAuthentication
protected boolean supportPreemptiveAuthentication()
- Specified by:
supportPreemptiveAuthentication
in class HttpWagonTestCase
testPreemptiveAuthentication
protected void testPreemptiveAuthentication(HttpWagonTestCase.TestSecurityHandler sh)
- Overrides:
testPreemptiveAuthentication
in class HttpWagonTestCase
testWagonFailsOnPutFailureByDefault
public void testWagonFailsOnPutFailureByDefault()
throws Exception
- Throws:
Exception
testWagonContinuesOnPutFailureIfPropertySet
public void testWagonContinuesOnPutFailureIfPropertySet()
throws Exception
- Throws:
Exception
supportProxyPreemptiveAuthentication
protected boolean supportProxyPreemptiveAuthentication()
- Overrides:
supportProxyPreemptiveAuthentication
in class HttpWagonTestCase
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.