public class WebDavWagonTest extends HttpWagonTestCase
HttpWagonTestCase.HandlerRequestResponse, HttpWagonTestCase.PutHandler, HttpWagonTestCase.RedirectHandler, HttpWagonTestCase.TestSecurityHandlerartifactDestFile, artifactSourceFile, checksumObserver, destFile, localRepository, localRepositoryPath, logger, mockTransferListener, POM, resource, sourceFile, testRepository| Constructor and Description |
|---|
WebDavWagonTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkRequestResponseForRedirectPutFromStreamWithFullUrl(HttpWagonTestCase.PutHandler putHandler,
HttpWagonTestCase.RedirectHandler redirectHandler) |
protected void |
checkRequestResponseForRedirectPutFromStreamWithRelativeUrl(HttpWagonTestCase.PutHandler putHandler,
HttpWagonTestCase.RedirectHandler redirectHandler) |
protected void |
createContext(org.mortbay.jetty.Server server,
File repositoryDirectory) |
protected long |
getExpectedLastModifiedOnGet(Repository repository,
Resource resource) |
protected String |
getProtocol() |
protected String |
getTestRepositoryUrl() |
protected void |
setHttpHeaders(StreamingWagon wagon,
Properties properties) |
protected boolean |
supportPreemptiveAuthenticationGet() |
protected boolean |
supportPreemptiveAuthenticationPut() |
protected boolean |
supportProxyPreemptiveAuthentication() |
void |
testGetURLDavHttp()
Tests the maven 2.0.x way to define a webdav URL without SSL.
|
void |
testGetURLDavHttps()
Tests the maven 2.0.x way to define a webdav URL with SSL.
|
void |
testGetURLDavPlusHttp()
Tests the URI spec way of defining a webdav URL without SSL.
|
void |
testGetURLDavPlusHttps()
Tests the URI spec way of defining a webdav URL with SSL.
|
void |
testGetURLDavUri()
Tests the URI spec way of defining a webdav URL without SSL.
|
void |
testGetURLDavUriWithSsl()
Tests the URI spec way of defining a webdav URL with SSL.
|
void |
testMkdirs() |
void |
testMkdirsWithNoBasedir() |
protected void |
testPreemptiveAuthentication(HttpWagonTestCase.TestSecurityHandler sh,
boolean preemptive) |
protected void |
testPreemptiveAuthenticationGet(HttpWagonTestCase.TestSecurityHandler sh,
boolean preemptive) |
protected void |
testPreemptiveAuthenticationPut(HttpWagonTestCase.TestSecurityHandler sh,
boolean preemptive) |
void |
testWagonContinuesOnPutFailureIfPropertySet() |
void |
testWagonFailsOnPutFailureByDefault() |
void |
testWagonWebDavGetFileList()
Make sure wagon webdav can detect remote directory
|
addConnectors, createSecurityHandler, getRepositoryDirectory, getRepositoryUrl, getTestRepositoryPort, runTestSecuredGet, runTestSecuredGetToStream, runTestSecuredPut, runTestSecuredPut, runTestSecuredPutFromStream, runTestSecuredResourceExists, setupWagonTestingFixtures, tearDownWagonTestingFixtures, testGet404, testGet500, testGetForbidden, testGzipGet, testHttpHeaders, testHttpHeadersWithCommonMethods, testList429, testNonSecuredPutFromStream, testProxiedRequest, testProxiedRequestWithAuthentication, testPut404, testPut429, testPut500, testPutForbidden, testRedirectGet, testRedirectGetToStream, testRedirectPutFileRelativeUrl, testRedirectPutFileWithFullUrl, testRedirectPutFromStreamRelativeUrl, testRedirectPutFromStreamWithFullUrl, testResourceExists404, testResourceExists429, testResourceExists500, testResourceExistsForbidden, testSecuredGet, testSecuredGetToStream, testSecuredGetUnauthorized, testSecuredGetWrongPassword, testSecuredPut, testSecuredPutFromStream, testSecuredPutUnauthorized, testSecuredPutWrongPassword, testSecuredResourceExists, testSecuredResourceExistsUnauthorized, testSecuredResourceExistsWrongPassword, testWagonGetFileListstreamRoundTripTesting, testFailedGetIfNewerToStream, testFailedGetToStream, testStreamingWagon, testWagonGetIfNewerToStreamIsNewer, testWagonGetIfNewerToStreamIsOlder, testWagonGetIfNewerToStreamIsSameassertGetIfNewerTest, assertNotExists, assertOnTransferProgress, 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, verifyMockcustomizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, tearDownassertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic WebDavWagonTest()
protected String getTestRepositoryUrl() throws IOException
getTestRepositoryUrl in class WagonTestCaseIOExceptionprotected String getProtocol()
getProtocol in class WagonTestCaseprotected void createContext(org.mortbay.jetty.Server server, File repositoryDirectory) throws IOException
createContext in class HttpWagonTestCaseIOExceptionprotected long getExpectedLastModifiedOnGet(Repository repository, Resource resource)
getExpectedLastModifiedOnGet in class HttpWagonTestCasepublic void testGetURLDavHttp()
public void testGetURLDavHttps()
public void testGetURLDavUri()
public void testGetURLDavUriWithSsl()
public void testGetURLDavPlusHttp()
public void testGetURLDavPlusHttps()
public void testMkdirs() throws Exception
Exceptionpublic void testMkdirsWithNoBasedir() throws Exception
Exceptionprotected void setHttpHeaders(StreamingWagon wagon, Properties properties)
setHttpHeaders in class HttpWagonTestCasepublic void testWagonWebDavGetFileList() throws Exception
Exceptionpublic void testWagonFailsOnPutFailureByDefault() throws Exception
Exceptionpublic void testWagonContinuesOnPutFailureIfPropertySet() throws Exception
Exceptionprotected boolean supportPreemptiveAuthenticationPut()
supportPreemptiveAuthenticationPut in class HttpWagonTestCaseprotected boolean supportPreemptiveAuthenticationGet()
supportPreemptiveAuthenticationGet in class HttpWagonTestCaseprotected boolean supportProxyPreemptiveAuthentication()
supportProxyPreemptiveAuthentication in class HttpWagonTestCaseprotected void testPreemptiveAuthenticationGet(HttpWagonTestCase.TestSecurityHandler sh, boolean preemptive)
testPreemptiveAuthenticationGet in class HttpWagonTestCaseprotected void testPreemptiveAuthenticationPut(HttpWagonTestCase.TestSecurityHandler sh, boolean preemptive)
testPreemptiveAuthenticationPut in class HttpWagonTestCaseprotected void testPreemptiveAuthentication(HttpWagonTestCase.TestSecurityHandler sh, boolean preemptive)
testPreemptiveAuthentication in class HttpWagonTestCaseprotected void checkRequestResponseForRedirectPutFromStreamWithFullUrl(HttpWagonTestCase.PutHandler putHandler, HttpWagonTestCase.RedirectHandler redirectHandler)
checkRequestResponseForRedirectPutFromStreamWithFullUrl in class HttpWagonTestCaseprotected void checkRequestResponseForRedirectPutFromStreamWithRelativeUrl(HttpWagonTestCase.PutHandler putHandler, HttpWagonTestCase.RedirectHandler redirectHandler)
checkRequestResponseForRedirectPutFromStreamWithRelativeUrl in class HttpWagonTestCaseCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.