fix unit test

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1443439 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-02-07 12:33:36 +00:00
parent 35570a1084
commit a51a6e575a
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ public class DownloadMergedIndexTest
ManagedRepository managedRepository = new ManagedRepository(); ManagedRepository managedRepository = new ManagedRepository();
managedRepository.setId( id ); managedRepository.setId( id );
managedRepository.setName( "name of " + id ); managedRepository.setName( "name of " + id );
managedRepository.setLocation( "src/test/repositories/test-repo" ); managedRepository.setLocation( System.getProperty( "basedir" ) + "/src/test/repositories/test-repo" );
managedRepository.setIndexDirectory( System.getProperty( "java.io.tmpdir" ) + "/tmpIndex/" + id ); managedRepository.setIndexDirectory( System.getProperty( "java.io.tmpdir" ) + "/tmpIndex/" + id );
ManagedRepositoriesService managedRepositoriesService = getManagedRepositoriesService(); ManagedRepositoriesService managedRepositoriesService = getManagedRepositoriesService();
@ -134,7 +134,7 @@ public class DownloadMergedIndexTest
managedRepository = new ManagedRepository(); managedRepository = new ManagedRepository();
managedRepository.setId( id ); managedRepository.setId( id );
managedRepository.setName( "name of " + id ); managedRepository.setName( "name of " + id );
managedRepository.setLocation( "src/test/repositories/test-repo" ); managedRepository.setLocation(System.getProperty( "basedir" ) + "src/test/repositories/test-repo" );
managedRepository.setIndexDirectory( System.getProperty( "java.io.tmpdir" ) + "/tmpIndex/" + id ); managedRepository.setIndexDirectory( System.getProperty( "java.io.tmpdir" ) + "/tmpIndex/" + id );
if ( managedRepositoriesService.getManagedRepository( id ) != null ) if ( managedRepositoriesService.getManagedRepository( id ) != null )