mirror of https://github.com/apache/archiva.git
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:
parent
35570a1084
commit
a51a6e575a
|
@ -97,7 +97,7 @@ public class DownloadMergedIndexTest
|
|||
ManagedRepository managedRepository = new ManagedRepository();
|
||||
managedRepository.setId( 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 );
|
||||
|
||||
ManagedRepositoriesService managedRepositoriesService = getManagedRepositoriesService();
|
||||
|
@ -134,7 +134,7 @@ public class DownloadMergedIndexTest
|
|||
managedRepository = new ManagedRepository();
|
||||
managedRepository.setId( 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 );
|
||||
|
||||
if ( managedRepositoriesService.getManagedRepository( id ) != null )
|
||||
|
|
Loading…
Reference in New Issue