From a51a6e575a6ae4113a0f60fe390533147e70948f Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 7 Feb 2013 12:33:36 +0000 Subject: fix unit test git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1443439 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/org/apache/archiva/DownloadMergedIndexTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archiva-modules/archiva-web/archiva-web-common/src/test') diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadMergedIndexTest.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadMergedIndexTest.java index f342ee149..fb8435c59 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadMergedIndexTest.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadMergedIndexTest.java @@ -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 ) -- cgit v1.2.3