an other try to prevent windauze file leak

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1204866 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-11-22 09:06:06 +00:00
parent 5bfcdf011a
commit c6db5dad33
2 changed files with 10 additions and 8 deletions

View File

@ -164,7 +164,9 @@ public abstract class AbstractProxyTestCase
ManagedRepositoryAdmin.class ) ).setArchivaConfiguration( config );
applicationContext.getBean( ManagedRepositoryAdmin.class ).addManagedRepository( repoConfig, false, null );
//config.getConfiguration().addManagedRepository( repoConfig );
// to prevent windauze file leaking
removeMavenIndexes();
// Setup source repository (using legacy layout)
repoLocation = new File( REPOPATH_LEGACY_MANAGED_TARGET );
@ -218,6 +220,13 @@ public abstract class AbstractProxyTestCase
@After
public void shutdown()
throws Exception
{
removeMavenIndexes();
}
protected void removeMavenIndexes()
throws Exception
{
NexusIndexer nexusIndexer = plexusSisuBridge.lookup( NexusIndexer.class );

View File

@ -103,13 +103,6 @@ public class MetadataTransferTest
@Named(value = "metadataTools#mocked")
private MetadataTools metadataTools;
@Before
public void init()
throws Exception
{
super.setUp();
//metadataTools = applicationContext.getBean( MetadataTools.class );
}
@Test
public void testGetProjectMetadataProxiedNotLocalOnRemoteConnectoDisabled()