Core Consummers module: add @Override for unit test + attempt to fix CleanupReleaseSnapshotRepositoryPurgeTest

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1369920 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
skygo 2012-08-06 18:48:38 +00:00
parent 4ac722c2e8
commit 3d4b925a5e
8 changed files with 15 additions and 0 deletions

View File

@ -60,6 +60,7 @@ public abstract class AbstractArtifactConsumerTest
@Before
@Override
public void setUp()
throws Exception
{
@ -74,6 +75,7 @@ public abstract class AbstractArtifactConsumerTest
}
@After
@Override
public void tearDown()
throws Exception
{

View File

@ -36,6 +36,7 @@ public class ArtifactMissingChecksumsConsumerTest
private ManagedRepository repoConfig;
@Before
@Override
public void setUp()
throws Exception
{

View File

@ -26,6 +26,7 @@ public class MetadataUpdateConsumerTest
extends AbstractArtifactConsumerTest
{
@Before
@Override
public void setUp()
throws Exception
{

View File

@ -100,6 +100,7 @@ public abstract class AbstractRepositoryPurgeTest
@Before
@Override
public void setUp()
throws Exception
{
@ -120,6 +121,7 @@ public abstract class AbstractRepositoryPurgeTest
}
@After
@Override
public void tearDown()
throws Exception
{

View File

@ -62,6 +62,7 @@ public class CleanupReleasedSnapshotsRepositoryPurgeTest
MetadataTools metadataTools;
@Before
@Override
public void setUp()
throws Exception
{
@ -222,6 +223,9 @@ public class CleanupReleasedSnapshotsRepositoryPurgeTest
assertExists( releasesProjectRoot + "/1.0/released-artifact-in-diff-repo-1.0.pom" );
assertExists( releasesProjectRoot + "/1.0/released-artifact-in-diff-repo-1.0.pom.md5" );
assertExists( releasesProjectRoot + "/1.0/released-artifact-in-diff-repo-1.0.pom.sha1" );
// remove RELEASES_TEST_REPO_ID so this test will be more independant
applicationContext.getBean( ManagedRepositoryAdmin.class ).deleteManagedRepository( RELEASES_TEST_REPO_ID, null, false );
}
@Test

View File

@ -49,6 +49,7 @@ public class DaysOldRepositoryPurgeTest
}
@After
@Override
public void tearDown()
throws Exception
{

View File

@ -46,6 +46,7 @@ public class RepositoryPurgeConsumerTest
extends AbstractRepositoryPurgeTest
{
@Before
@Override
public void setUp()
throws Exception
{
@ -56,6 +57,7 @@ public class RepositoryPurgeConsumerTest
}
@After
@Override
public void tearDown()
throws Exception
{

View File

@ -35,6 +35,7 @@ public class RetentionCountRepositoryPurgeTest
extends AbstractRepositoryPurgeTest
{
@Before
@Override
public void setUp()
throws Exception
{
@ -47,6 +48,7 @@ public class RetentionCountRepositoryPurgeTest
}
@After
@Override
public void tearDown()
throws Exception
{