Browse Source

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
tags/archiva-1.4-M2
Olivier Lamy 12 years ago
parent
commit
4b16406276

+ 12
- 4
archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/test/java/org/apache/archiva/consumers/core/repository/AbstractRepositoryPurgeTest.java View File

@@ -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 )

Loading…
Cancel
Save