diff options
author | Olivier Lamy <olamy@apache.org> | 2011-11-22 09:27:22 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2011-11-22 09:27:22 +0000 |
commit | 4b1640627662b1f26b9cb26ac009d84ef13772fa (patch) | |
tree | 825a57435bd37b060ec293bde2053bea28655bfd /archiva-modules | |
parent | c6db5dad33e4e93a5eb48cdc0c6ef47f1b625266 (diff) | |
download | archiva-4b1640627662b1f26b9cb26ac009d84ef13772fa.tar.gz archiva-4b1640627662b1f26b9cb26ac009d84ef13772fa.zip |
an other try to prevent windauze file leak
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1204873 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java index 1c55ffdf1..f65cc9176 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java @@ -120,21 +120,29 @@ public abstract class AbstractRepositoryPurgeTest previousArchivaConfiguration = ( (DefaultManagedRepositoryAdmin) applicationContext.getBean( ManagedRepositoryAdmin.class ) ).getArchivaConfiguration(); + + removeMavenIndexes(); } @After public void tearDown() throws Exception { + removeMavenIndexes(); + super.tearDown(); + config = null; + repo = null; + + } + + protected void removeMavenIndexes() + throws Exception + { NexusIndexer nexusIndexer = plexusSisuBridge.lookup( NexusIndexer.class ); for ( IndexingContext indexingContext : nexusIndexer.getIndexingContexts().values() ) { nexusIndexer.removeIndexingContext( indexingContext, false ); } - super.tearDown(); - config = null; - repo = null; - } public ManagedRepository getRepoConfiguration( String repoId, String repoName ) |