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, mockTransferListenerControl, POM, resource, sourceFile, testRepository
Constructor and Description |
---|
HttpWagonTestCase() |
streamRoundTripTesting, testFailedGetIfNewerToStream, testFailedGetToStream, testStreamingWagon, testWagonGetIfNewerToStreamIsNewer, testWagonGetIfNewerToStreamIsOlder, testWagonGetIfNewerToStreamIsSame
assertGetIfNewerTest, 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, 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
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
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
public HttpWagonTestCase()
protected void setupWagonTestingFixtures() throws Exception
setupWagonTestingFixtures
in class WagonTestCase
Exception
protected final int getTestRepositoryPort()
WagonTestCase
getTestRepositoryPort
in class WagonTestCase
protected void createContext(org.mortbay.jetty.Server server, File repositoryDirectory) throws IOException
IOException
protected void tearDownWagonTestingFixtures() throws Exception
tearDownWagonTestingFixtures
in class WagonTestCase
Exception
public void testWagonGetFileList() throws Exception
WagonTestCase
testWagonGetFileList
in class WagonTestCase
Exception
public void testHttpHeaders() throws Exception
Exception
public void testHttpHeadersWithCommonMethods() throws Exception
Exception
protected 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
Exception
public void testGet404() throws Exception
Exception
public void testGet500() throws Exception
Exception
public void testResourceExistsForbidden() throws Exception
Exception
public void testResourceExists404() throws Exception
Exception
public void testResourceExists500() throws Exception
Exception
protected long getExpectedLastModifiedOnGet(Repository repository, Resource resource)
getExpectedLastModifiedOnGet
in class WagonTestCase
protected File getRepositoryDirectory()
public void testGzipGet() throws Exception
Exception
public void testProxiedRequest() throws Exception
Exception
public void testProxiedRequestWithAuthentication() throws Exception
Exception
public void testRedirectGetToStream() throws Exception
Exception
public void testRedirectGet() throws Exception
Exception
public void testRedirectPutFromStreamWithFullUrl() throws Exception
Exception
protected void checkRequestResponseForRedirectPutFromStreamWithFullUrl(HttpWagonTestCase.PutHandler putHandler, HttpWagonTestCase.RedirectHandler redirectHandler)
public void testRedirectPutFromStreamRelativeUrl() throws Exception
Exception
protected void checkRequestResponseForRedirectPutFromStreamWithRelativeUrl(HttpWagonTestCase.PutHandler putHandler, HttpWagonTestCase.RedirectHandler redirectHandler)
public void testRedirectPutFileWithFullUrl() throws Exception
Exception
public void testRedirectPutFileRelativeUrl() throws Exception
Exception
public void testSecuredGetUnauthorized() throws Exception
Exception
public void testSecuredGetWrongPassword() throws Exception
Exception
public void testSecuredGet() throws Exception
Exception
public void runTestSecuredGet(AuthenticationInfo authInfo) throws Exception
Exception
public void testSecuredGetToStream() throws Exception
Exception
public void runTestSecuredGetToStream(AuthenticationInfo authInfo) throws Exception
Exception
public void testSecuredResourceExistsUnauthorized() throws Exception
Exception
public void testSecuredResourceExistsWrongPassword() throws Exception
Exception
public void testSecuredResourceExists() throws Exception
Exception
public void runTestSecuredResourceExists(AuthenticationInfo authInfo) throws Exception
Exception
public void testPutForbidden() throws Exception
Exception
public void testPut404() throws Exception
Exception
public void testPut500() throws Exception
Exception
public void testSecuredPutUnauthorized() throws Exception
Exception
public void testSecuredPutWrongPassword() throws Exception
Exception
public void testSecuredPut() throws Exception
Exception
public void runTestSecuredPut(AuthenticationInfo authInfo) throws Exception
Exception
public void runTestSecuredPut(AuthenticationInfo authInfo, int putNumber) throws Exception
Exception
public void testNonSecuredPutFromStream() throws Exception
Exception
public void testSecuredPutFromStream() throws Exception
Exception
public void runTestSecuredPutFromStream(AuthenticationInfo authInfo, int putNumber, boolean addSecurityHandler) throws Exception
Exception
protected 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.