cleanup some test code

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1197570 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-11-04 13:52:43 +00:00
parent 840cabb0fb
commit 2b4b9f0c0b
2 changed files with 0 additions and 48 deletions

View File

@ -89,39 +89,6 @@ public abstract class AbstractRepositoryServletTestCase
saveConfiguration( archivaConfiguration );
}
@BeforeClass
public static void lockCleanup()
throws Exception
{
/*
try
{
/*
Field locks = NativeFSLockFactory.class.getDeclaredClasses()[0].getField( "LOCK_HELD" );
locks.setAccessible( true );
Method clear = locks.getClass().getMethod( "clear" );
clear.invoke( field, null );
*/
/*
NativeFSLockFactory nativeFSLockFactory =
new NativeFSLockFactory( new File( "target/appserver-base/data/repositories/internal/.indexer" ) );
Lock lock = nativeFSLockFactory.makeLock( "write.lock" );
lock.release();
LoggerFactory.getLogger( AbstractRepositoryServletTestCase.class ).info( "cleanup lock" );
}
catch ( LockReleaseFailedException e )
{
// ignore
}
*/
}
@Before
@ -129,7 +96,6 @@ public abstract class AbstractRepositoryServletTestCase
throws Exception
{
lockCleanup();
super.setUp();
String appserverBase = new File( "target/appserver-base" ).getAbsolutePath();

View File

@ -110,20 +110,6 @@ public class MavenIndexerCleaner
nexusIndexer.removeIndexingContext( context, true );
}
/*
try
{
NativeFSLockFactory nativeFSLockFactory =
new NativeFSLockFactory( new File( "target/appserver-base/data/repositories/internal/.indexer" ) );
Lock lock = nativeFSLockFactory.makeLock( "write.lock" );
lock.release();
log.info( "cleanup lock" );
}
catch ( LockReleaseFailedException e )
{
// ignore
}*/
}