public class WebDavWagonTest extends HttpWagonTestCase
HttpWagonTestCase.HandlerRequestResponse, HttpWagonTestCase.PutHandler, HttpWagonTestCase.RedirectHandler, HttpWagonTestCase.TestSecurityHandler
SC_TOO_MANY_REQUESTS
artifactDestFile, artifactSourceFile, checksumObserver, destFile, localRepository, localRepositoryPath, logger, mockTransferListener, POM, resource, sourceFile, TEST_CKSUM, TEST_CONTENT, testRepository, testSkipped
Constructor and Description |
---|
WebDavWagonTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkRequestResponseForRedirectPutWithFullUrl(HttpWagonTestCase.RedirectHandler redirectHandler,
HttpWagonTestCase.PutHandler putHandler) |
protected void |
checkRequestResponseForRedirectPutWithRelativeUrl(HttpWagonTestCase.RedirectHandler redirectHandler,
HttpWagonTestCase.PutHandler putHandler) |
protected org.eclipse.jetty.servlet.ServletContextHandler |
createContext(org.eclipse.jetty.server.Server server,
File repositoryDirectory) |
protected long |
getExpectedLastModifiedOnGet(Repository repository,
Resource resource) |
protected String |
getProtocol() |
protected String |
getTestRepositoryUrl() |
protected void |
setHttpConfiguration(StreamingWagon wagon,
Properties headers,
Properties params) |
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
|
protected void |
verifyWagonExceptionMessage(Exception e,
int forStatusCode,
String forUrl,
String forReasonPhrase) |
addConnector, checkHandlerResult, createSecurityHandler, getLocalPort, getRepositoryDirectory, getRepositoryUrl, getTestRepositoryPort, runTestSecuredGet, runTestSecuredGetToStream, runTestSecuredPut, runTestSecuredPut, runTestSecuredPutFromStream, runTestSecuredResourceExists, setupWagonTestingFixtures, tearDownWagonTestingFixtures, testGet404, testGet500, testGetForbidden, testGzipGet, testHttpHeaders, testHttpHeadersWithCommonMethods, testNonSecuredPutFromStream, testPreemptiveAuthentication, testProxiedRequest, testProxiedRequestWithAuthentication, testProxiedRequestWithAuthenticationWithProvider, testPut404, testPut429, testPut500, testPutForbidden, testRedirectGet, testRedirectGetToStream, testRedirectPutFailureNonRepeatableStream, testRedirectPutFileRelativeUrl, testRedirectPutFileWithFullUrl, testRedirectPutFromStreamRelativeUrl, testRedirectPutFromStreamWithFullUrl, testResourceExists404, testResourceExists429, testResourceExists500, testResourceExistsForbidden, testSecuredGet, testSecuredGetToStream, testSecuredGetUnauthorized, testSecuredGetWrongPassword, testSecuredPut, testSecuredPutFromStream, testSecuredPutUnauthorized, testSecuredPutWrongPassword, testSecuredResourceExists, testSecuredResourceExistsUnauthorized, testSecuredResourceExistsWrongPassword, testUserAgentHeaderIsPresentByDefault, testUserAgentHeaderIsPresentOnlyOnceIfSetMultipleTimes
streamRoundTripTesting, testFailedGetIfNewerToStream, testFailedGetToStream, testStreamingWagon, testWagonGetIfNewerToStreamIsNewer, testWagonGetIfNewerToStreamIsOlder, testWagonGetIfNewerToStreamIsSame
assertGetIfNewerTest, assertNotExists, assertOnTransferProgress, assertResourcesAreInRemoteSide, cksum, connectWagon, createDirectory, createFileRepository, createTransferEvent, customizeContext, disconnectWagon, fileRoundTripTesting, getAuthInfo, getExpectedContentLengthOnGet, getFile, getPermissions, getWagon, isSystemCmd, message, putFile, putFile, replaceMockForGet, replayMockForPut, runTest, setUp, setupGetIfNewerTest, setupRepositories, supportsGetIfNewer, testFailedGet, testFailedGetIfNewer, testWagon, testWagonGetFileList, testWagonGetFileListWhenDirectoryDoesNotExist, testWagonGetIfNewerIsNewer, testWagonGetIfNewerIsOlder, testWagonGetIfNewerIsSame, testWagonPutDirectory, testWagonPutDirectoryDeepDestination, testWagonPutDirectoryForDot, testWagonPutDirectoryWhenDirectoryAlreadyExists, testWagonResourceExists, testWagonResourceNotExists, verifyMock
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, tearDown
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
public WebDavWagonTest()
protected String getTestRepositoryUrl() throws IOException
getTestRepositoryUrl
in class WagonTestCase
IOException
protected String getProtocol()
getProtocol
in class WagonTestCase
protected org.eclipse.jetty.servlet.ServletContextHandler createContext(org.eclipse.jetty.server.Server server, File repositoryDirectory) throws IOException
createContext
in class HttpWagonTestCase
IOException
protected long getExpectedLastModifiedOnGet(Repository repository, Resource resource)
getExpectedLastModifiedOnGet
in class HttpWagonTestCase
public void testGetURLDavHttp()
public void testGetURLDavHttps()
public void testGetURLDavUri()
public void testGetURLDavUriWithSsl()
public void testGetURLDavPlusHttp()
public void testGetURLDavPlusHttps()
public void testMkdirs() throws Exception
Exception
public void testMkdirsWithNoBasedir() throws Exception
Exception
protected void setHttpConfiguration(StreamingWagon wagon, Properties headers, Properties params)
setHttpConfiguration
in class HttpWagonTestCase
public void testWagonWebDavGetFileList() throws Exception
Exception
public void testWagonFailsOnPutFailureByDefault() throws Exception
Exception
public void testWagonContinuesOnPutFailureIfPropertySet() throws Exception
Exception
protected boolean supportPreemptiveAuthenticationPut()
supportPreemptiveAuthenticationPut
in class HttpWagonTestCase
protected boolean supportPreemptiveAuthenticationGet()
supportPreemptiveAuthenticationGet
in class HttpWagonTestCase
protected boolean supportProxyPreemptiveAuthentication()
supportProxyPreemptiveAuthentication
in class HttpWagonTestCase
protected void testPreemptiveAuthenticationGet(HttpWagonTestCase.TestSecurityHandler sh, boolean preemptive)
testPreemptiveAuthenticationGet
in class HttpWagonTestCase
protected void testPreemptiveAuthenticationPut(HttpWagonTestCase.TestSecurityHandler sh, boolean preemptive)
testPreemptiveAuthenticationPut
in class HttpWagonTestCase
protected void testPreemptiveAuthentication(HttpWagonTestCase.TestSecurityHandler sh, boolean preemptive)
protected void checkRequestResponseForRedirectPutWithFullUrl(HttpWagonTestCase.RedirectHandler redirectHandler, HttpWagonTestCase.PutHandler putHandler)
checkRequestResponseForRedirectPutWithFullUrl
in class HttpWagonTestCase
protected void checkRequestResponseForRedirectPutWithRelativeUrl(HttpWagonTestCase.RedirectHandler redirectHandler, HttpWagonTestCase.PutHandler putHandler)
checkRequestResponseForRedirectPutWithRelativeUrl
in class HttpWagonTestCase
protected void verifyWagonExceptionMessage(Exception e, int forStatusCode, String forUrl, String forReasonPhrase)
verifyWagonExceptionMessage
in class HttpWagonTestCase
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.