diff options
author | Olivier Lamy <olamy@apache.org> | 2013-02-07 12:33:36 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-02-07 12:33:36 +0000 |
commit | a51a6e575a6ae4113a0f60fe390533147e70948f (patch) | |
tree | 2680bb4ac8822b559293e25015d9b605a519bfec /archiva-modules/archiva-web/archiva-web-common | |
parent | 35570a108450c45ff3d958827e4439cea8722486 (diff) | |
download | archiva-a51a6e575a6ae4113a0f60fe390533147e70948f.tar.gz archiva-a51a6e575a6ae4113a0f60fe390533147e70948f.zip |
fix unit test
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1443439 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-web-common')
-rw-r--r-- | archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadMergedIndexTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
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 ) |