public abstract class HttpWagonTestCase extends StreamingWagonTestCase
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpWagonTestCase.HandlerRequestResponse |
static class |
HttpWagonTestCase.PutHandler |
static class |
HttpWagonTestCase.RedirectHandler |
static class |
HttpWagonTestCase.TestSecurityHandler |
artifactDestFile, artifactSourceFile, checksumObserver, destFile, localRepository, localRepositoryPath, logger, mockTransferListener, POM, resource, sourceFile, testRepository| Constructor and Description |
|---|
HttpWagonTestCase() |
streamRoundTripTesting, testFailedGetIfNewerToStream, testFailedGetToStream, testStreamingWagon, testWagonGetIfNewerToStreamIsNewer, testWagonGetIfNewerToStreamIsOlder, testWagonGetIfNewerToStreamIsSameassertGetIfNewerTest, assertNotExists, assertOnTransferProgress, assertResourcesAreInRemoteSide, connectWagon, createDirectory, createFileRepository, createTransferEvent, customizeContext, disconnectWagon, fileRoundTripTesting, getAuthInfo, getExpectedContentLengthOnGet, getFile, getPermissions, getProtocol, getTestRepositoryUrl, 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, tearDowncountTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, formatpublic HttpWagonTestCase()
protected void setupWagonTestingFixtures() throws Exception
setupWagonTestingFixtures in class WagonTestCaseExceptionprotected final int getTestRepositoryPort()
WagonTestCasegetTestRepositoryPort in class WagonTestCaseprotected void createContext(org.mortbay.jetty.Server server, File repositoryDirectory) throws IOException
IOExceptionprotected void tearDownWagonTestingFixtures() throws Exception
tearDownWagonTestingFixtures in class WagonTestCaseExceptionpublic void testWagonGetFileList() throws Exception
WagonTestCasetestWagonGetFileList in class WagonTestCaseExceptionpublic void testHttpHeaders() throws Exception
Exceptionpublic void testHttpHeadersWithCommonMethods() throws Exception
Exceptionprotected abstract void setHttpHeaders(StreamingWagon wagon, Properties properties)
protected void addConnectors(org.mortbay.jetty.Server server)
protected String getRepositoryUrl(org.mortbay.jetty.Server server)
public void testGetForbidden() throws Exception
Exceptionpublic void testGet404() throws Exception
Exceptionpublic void testGet500() throws Exception
Exceptionpublic void testResourceExistsForbidden() throws Exception
Exceptionpublic void testResourceExists404() throws Exception
Exceptionpublic void testResourceExists500() throws Exception
Exceptionprotected long getExpectedLastModifiedOnGet(Repository repository, Resource resource)
getExpectedLastModifiedOnGet in class WagonTestCaseprotected File getRepositoryDirectory()
public void testGzipGet() throws Exception
Exceptionpublic void testProxiedRequest() throws Exception
Exceptionpublic void testProxiedRequestWithAuthentication() throws Exception
Exceptionpublic void testRedirectGetToStream() throws Exception
Exceptionpublic void testRedirectGet() throws Exception
Exceptionpublic void testRedirectPutFromStreamWithFullUrl() throws Exception
Exceptionprotected void checkRequestResponseForRedirectPutFromStreamWithFullUrl(HttpWagonTestCase.PutHandler putHandler, HttpWagonTestCase.RedirectHandler redirectHandler)
public void testRedirectPutFromStreamRelativeUrl() throws Exception
Exceptionprotected void checkRequestResponseForRedirectPutFromStreamWithRelativeUrl(HttpWagonTestCase.PutHandler putHandler, HttpWagonTestCase.RedirectHandler redirectHandler)
public void testRedirectPutFileWithFullUrl() throws Exception
Exceptionpublic void testRedirectPutFileRelativeUrl() throws Exception
Exceptionpublic void testSecuredGetUnauthorized() throws Exception
Exceptionpublic void testSecuredGetWrongPassword() throws Exception
Exceptionpublic void testSecuredGet() throws Exception
Exceptionpublic void runTestSecuredGet(AuthenticationInfo authInfo) throws Exception
Exceptionpublic void testSecuredGetToStream() throws Exception
Exceptionpublic void runTestSecuredGetToStream(AuthenticationInfo authInfo) throws Exception
Exceptionpublic void testSecuredResourceExistsUnauthorized() throws Exception
Exceptionpublic void testSecuredResourceExistsWrongPassword() throws Exception
Exceptionpublic void testSecuredResourceExists() throws Exception
Exceptionpublic void runTestSecuredResourceExists(AuthenticationInfo authInfo) throws Exception
Exceptionpublic void testPutForbidden() throws Exception
Exceptionpublic void testPut404() throws Exception
Exceptionpublic void testPut500() throws Exception
Exceptionpublic void testSecuredPutUnauthorized() throws Exception
Exceptionpublic void testSecuredPutWrongPassword() throws Exception
Exceptionpublic void testSecuredPut() throws Exception
Exceptionpublic void runTestSecuredPut(AuthenticationInfo authInfo) throws Exception
Exceptionpublic void runTestSecuredPut(AuthenticationInfo authInfo, int putNumber) throws Exception
Exceptionpublic void testNonSecuredPutFromStream() throws Exception
Exceptionpublic void testSecuredPutFromStream() throws Exception
Exceptionpublic void runTestSecuredPutFromStream(AuthenticationInfo authInfo, int putNumber, boolean addSecurityHandler) throws Exception
Exceptionprotected abstract boolean supportPreemptiveAuthenticationPut()
protected abstract boolean supportPreemptiveAuthenticationGet()
protected abstract boolean supportProxyPreemptiveAuthentication()
protected void testPreemptiveAuthenticationGet(HttpWagonTestCase.TestSecurityHandler sh, boolean preemptive)
protected void testPreemptiveAuthenticationPut(HttpWagonTestCase.TestSecurityHandler sh, boolean preemptive)
protected void testPreemptiveAuthentication(HttpWagonTestCase.TestSecurityHandler sh, boolean preemptive)
protected HttpWagonTestCase.TestSecurityHandler createSecurityHandler()
Copyright © 2003–2013 The Apache Software Foundation. All rights reserved.