diff options
3 files changed, 5 insertions, 5 deletions
diff --git a/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ChecksumPolicyTest.java b/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ChecksumPolicyTest.java index a1d83d36f..335a7a72e 100644 --- a/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ChecksumPolicyTest.java +++ b/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ChecksumPolicyTest.java @@ -19,8 +19,8 @@ package org.apache.maven.archiva.policies; * under the License. */ +import org.apache.commons.io.FileUtils; import org.codehaus.plexus.PlexusTestCase; -import org.codehaus.plexus.util.FileUtils; import java.io.BufferedReader; import java.io.File; diff --git a/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ReleasePolicyTest.java b/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ReleasePolicyTest.java index 3ede659be..747241ca2 100644 --- a/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ReleasePolicyTest.java +++ b/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ReleasePolicyTest.java @@ -19,8 +19,8 @@ package org.apache.maven.archiva.policies; * under the License. */ +import org.apache.commons.io.FileUtils; import org.codehaus.plexus.PlexusTestCase; -import org.codehaus.plexus.util.FileUtils; import java.io.File; import java.util.Properties; @@ -306,7 +306,7 @@ public class ReleasePolicyTest if ( createLocalFile ) { localFile.getParentFile().mkdirs(); - FileUtils.fileWrite( localFile.getAbsolutePath(), "random-junk" ); + FileUtils.writeStringToFile( localFile, "random-junk" ); localFile.setLastModified( localFile.lastModified() - generatedLocalFileUpdateDelta ); } diff --git a/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/SnapshotsPolicyTest.java b/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/SnapshotsPolicyTest.java index 0879a7ea8..c57381a44 100644 --- a/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/SnapshotsPolicyTest.java +++ b/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/SnapshotsPolicyTest.java @@ -19,8 +19,8 @@ package org.apache.maven.archiva.policies; * under the License. */ +import org.apache.commons.io.FileUtils; import org.codehaus.plexus.PlexusTestCase; -import org.codehaus.plexus.util.FileUtils; import java.io.File; import java.util.Properties; @@ -306,7 +306,7 @@ public class SnapshotsPolicyTest if ( createLocalFile ) { localFile.getParentFile().mkdirs(); - FileUtils.fileWrite( localFile.getAbsolutePath(), "random-junk" ); + FileUtils.writeStringToFile( localFile, "random-junk" ); localFile.setLastModified( localFile.lastModified() - generatedLocalFileUpdateDelta ); } |