public class MavenITmng3415JunkRepositoryMetadataTest extends AbstractMavenIntegrationTestCase
ALL_MAVEN_VERSIONS
Constructor and Description |
---|
MavenITmng3415JunkRepositoryMetadataTest() |
Modifier and Type | Method and Description |
---|---|
void |
testitTransferFailed()
This test simply verifies that when a metadata transfer fails (network error, etc.)
no metadata file is written to the local repository.
|
void |
testShouldNotRepeatedlyUpdateOnResourceNotFoundException()
This test simply verifies that when metadata doesn't exist on the remote
repository, a basic metadata file is written to the local repository.
|
assertCanonicalFileEquals, assertCanonicalFileEquals, assertCanonicalFileEquals, assertCanonicalFileEquals, failingMavenVersions, getMavenVersion, isSkipped, matchesVersionRange, newVerifier, newVerifier, newVerifier, newVerifier, requiresJavaVersion, requiresMavenVersion, runTest, setupLocalRepo
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, setUp, tearDown, toString
public MavenITmng3415JunkRepositoryMetadataTest()
public void testitTransferFailed() throws Exception
Steps executed to verify this test:
0. Find the local repository directory: a. build the maven-find-local-repo-plugin, then run it, to spit out the path of the local repository in use by default. Read the output file to get this path. (Yes, it's heavy, but it's reliable.) 1. Setup the test: a. Make sure the metadata for the test-repo is NOT in the local repository. b. Make sure the dependency POM IS in the local repository, so we're not distracted by failed builds that are unrelated. c. Create the settings file for use in this test, which contains the invalid remote repository entry. 2. Build the test project the first time a. Verify that a TransferFailedException is in the build output for the test-repo b. Verify that the metadata for the dependency POM is NOT in the local repository afterwards. 3. Build the test project the second time a. See (2.a) and (2.b) above; the same criteria applies here.Exception
- in case of failurepublic void testShouldNotRepeatedlyUpdateOnResourceNotFoundException() throws Exception
Steps executed to verify this test:
0. Find the local repository directory: a. build the maven-find-local-repo-plugin, then run it, to spit out the path of the local repository in use by default. Read the output file to get this path. (Yes, it's heavy, but it's reliable.) 1. Setup the test: a. Make sure the metadata for the test-repo is NOT in the local repository. b. Make sure the dependency POM IS in the local repository, so we're not distracted by failed builds that are unrelated. c. Create the settings file for use in this test, which contains the VALID remote repository entry. 2. Build the test project the first time a. Verify that the remote repository is checked for the metadata file 3. Build the test project the second time a. Verify that the remote repository is NOT checked for the metadata file again b. Verify that the file used for updateInterval calculations was NOT changed from the first build.Exception
- in case of failureCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.