cleanup bad content from previous builds: my bad !

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1233368 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-01-19 13:33:34 +00:00
parent af18bdf380
commit 2d3d39db6a
2 changed files with 6 additions and 2 deletions

View File

@ -298,6 +298,12 @@ public abstract class AbstractArchivaRestTest
managedRepository.setId( testRepoId );
managedRepository.setName( "test repo" );
File badContent = new File( repoPath, "target" );
if ( badContent.exists() )
{
FileUtils.deleteDirectory( badContent );
}
managedRepository.setLocation( new File( repoPath ).getPath() );
managedRepository.setIndexDirectory(
System.getProperty( "java.io.tmpdir" ) + "/target/.index-" + Long.toString( new Date().getTime() ) );

View File

@ -114,8 +114,6 @@ public class ManagedRepositoriesServiceTest
ManagedRepositoriesService service = getManagedRepositoriesService( authorizationHeader );
RepositoriesService repositoriesService = getRepositoriesService( authorizationHeader );
ArchivaRepositoryStatistics archivaRepositoryStatistics = service.getManagedRepositoryStatistics( testRepoId );
assertNotNull( archivaRepositoryStatistics );