public abstract class AbstractScmWagonTest extends WagonTestCase
ScmWagon
. You need a subclass for each SCM provider you want to test.artifactDestFile, artifactSourceFile, checksumObserver, destFile, localRepository, localRepositoryPath, logger, mockTransferListener, POM, resource, sourceFile, TEST_CKSUM, TEST_CONTENT, testRepository, testSkipped
Constructor and Description |
---|
AbstractScmWagonTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertResourcesAreInRemoteSide(Wagon wagon,
List<String> resourceNames) |
protected void |
createDirectory(Wagon wagon,
String resourceToCreate,
String dirName) |
protected int |
getExpectedContentLengthOnGet(int expectedSize) |
protected long |
getExpectedLastModifiedOnGet(Repository repository,
Resource resource) |
protected String |
getProtocol() |
protected abstract String |
getScmId()
The SCM id, eg.
|
protected ScmProvider |
getScmProvider()
Allows overriding the
ScmProvider injected by default in the ScmWagon . |
protected Wagon |
getWagon() |
protected void |
setUp() |
void |
testWagonPutDirectory() |
assertGetIfNewerTest, assertNotExists, assertOnTransferProgress, cksum, connectWagon, createFileRepository, createTransferEvent, customizeContext, disconnectWagon, fileRoundTripTesting, getAuthInfo, getFile, getPermissions, getTestRepositoryUrl, isSystemCmd, message, putFile, putFile, replaceMockForGet, replayMockForPut, runTest, setupGetIfNewerTest, setupRepositories, setupWagonTestingFixtures, supportsGetIfNewer, tearDownWagonTestingFixtures, testFailedGet, testFailedGetIfNewer, testWagon, testWagonGetFileList, testWagonGetFileListWhenDirectoryDoesNotExist, testWagonGetIfNewerIsNewer, testWagonGetIfNewerIsOlder, testWagonGetIfNewerIsSame, 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 AbstractScmWagonTest()
public void testWagonPutDirectory() throws Exception
testWagonPutDirectory
in class WagonTestCase
Exception
protected void setUp() throws Exception
setUp
in class WagonTestCase
Exception
protected ScmProvider getScmProvider()
ScmProvider
injected by default in the ScmWagon
.
Useful to force the implementation to use for a particular SCM type.
If this method returns null
ScmWagon
will use the default ScmProvider
.ScmProvider
to use in the ScmWagon
protected Wagon getWagon() throws Exception
getWagon
in class WagonTestCase
Exception
protected int getExpectedContentLengthOnGet(int expectedSize)
getExpectedContentLengthOnGet
in class WagonTestCase
protected long getExpectedLastModifiedOnGet(Repository repository, Resource resource)
getExpectedLastModifiedOnGet
in class WagonTestCase
protected String getProtocol()
getProtocol
in class WagonTestCase
protected void createDirectory(Wagon wagon, String resourceToCreate, String dirName) throws Exception
createDirectory
in class WagonTestCase
Exception
protected void assertResourcesAreInRemoteSide(Wagon wagon, List<String> resourceNames) throws IOException, TransferFailedException, ResourceDoesNotExistException, AuthorizationException
assertResourcesAreInRemoteSide
in class WagonTestCase
IOException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.