diff options
author | Maria Odea B. Ching <oching@apache.org> | 2011-06-15 11:03:10 +0000 |
---|---|---|
committer | Maria Odea B. Ching <oching@apache.org> | 2011-06-15 11:03:10 +0000 |
commit | 1af82ff7d8db47ff0dee286869d80189cabf78e4 (patch) | |
tree | e20a661bf889dca04af820b71e9908e7e2a86f02 /archiva-modules/archiva-base/archiva-policies/src | |
parent | dab1e929905186a20423260d0f1ce275eef4add2 (diff) | |
download | archiva-1af82ff7d8db47ff0dee286869d80189cabf78e4.tar.gz archiva-1af82ff7d8db47ff0dee286869d80189cabf78e4.zip |
use getBasedir() in FileUtil in archiva-common
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1135993 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-policies/src')
-rw-r--r-- | archiva-modules/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ChecksumPolicyTest.java | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/archiva-modules/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ChecksumPolicyTest.java b/archiva-modules/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ChecksumPolicyTest.java index 7d7448862..e2a3aa92e 100644 --- a/archiva-modules/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ChecksumPolicyTest.java +++ b/archiva-modules/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ChecksumPolicyTest.java @@ -21,6 +21,7 @@ package org.apache.maven.archiva.policies; import junit.framework.TestCase; import org.apache.commons.io.FileUtils; +import org.apache.maven.archiva.common.utils.FileUtil; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.context.ContextConfiguration; @@ -357,22 +358,9 @@ public class ChecksumPolicyTest return localFile; } - - - public static String getBasedir() - { - String basedir = System.getProperty( "basedir" ); - if ( basedir == null ) - { - basedir = new File( "" ).getAbsolutePath(); - } - - return basedir; - } - public static File getTestFile( String path ) { - return new File( getBasedir(), path ); + return new File( FileUtil.getBasedir(), path ); } } |