This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch plexus in repository https://gitbox.apache.org/repos/asf/maven-wagon.git
commit 1165f331ca8916546f3905e33e5d8ad6797be8e1 Author: Elliotte Rusty Harold <elh...@ibiblio.org> AuthorDate: Sun Jun 15 09:12:02 2025 -0400 replace obsolete plexus FileUtils --- .../src/test/java/org/apache/maven/wagon/AbstractWagonTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wagon-provider-api/src/test/java/org/apache/maven/wagon/AbstractWagonTest.java b/wagon-provider-api/src/test/java/org/apache/maven/wagon/AbstractWagonTest.java index 5ae69460..556a4982 100644 --- a/wagon-provider-api/src/test/java/org/apache/maven/wagon/AbstractWagonTest.java +++ b/wagon-provider-api/src/test/java/org/apache/maven/wagon/AbstractWagonTest.java @@ -24,6 +24,8 @@ import java.io.InputStream; import java.io.OutputStream; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; import junit.framework.TestCase; import org.apache.maven.wagon.authentication.AuthenticationException; import org.apache.maven.wagon.authentication.AuthenticationInfo; @@ -37,7 +39,6 @@ import org.apache.maven.wagon.repository.Repository; import org.apache.maven.wagon.repository.RepositoryPermissions; import org.apache.maven.wagon.resource.Resource; -import org.codehaus.plexus.util.FileUtils; import org.codehaus.plexus.util.IOUtil; import org.easymock.IAnswer; @@ -454,7 +455,7 @@ public void testPostProcessListeners() throws TransferFailedException, IOExcepti File tempFile = File.createTempFile("wagon", "tmp"); tempFile.deleteOnExit(); String content = "content"; - FileUtils.fileWrite(tempFile.getAbsolutePath(), content); + Files.write(tempFile.toPath().toAbsolutePath(), content.getBytes(StandardCharsets.UTF_8)); Resource resource = new Resource("resource");