This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-shared-io.git
The following commit(s) were added to refs/heads/master by this push:
new 5980d75 prefer Apache Commons to Maven shared utils (#21)
5980d75 is described below
commit 5980d7542590618829a9b75204e6d62ebf66283d
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Sun Mar 5 09:42:18 2023 -0500
prefer Apache Commons to Maven shared utils (#21)
---
.../java/org/apache/maven/shared/io/location/FileLocationTest.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git
a/src/test/java/org/apache/maven/shared/io/location/FileLocationTest.java
b/src/test/java/org/apache/maven/shared/io/location/FileLocationTest.java
index 3a61da2..351c794 100644
--- a/src/test/java/org/apache/maven/shared/io/location/FileLocationTest.java
+++ b/src/test/java/org/apache/maven/shared/io/location/FileLocationTest.java
@@ -21,16 +21,14 @@ import org.apache.commons.io.FileUtils;
* under the License.
*/
-import org.apache.maven.shared.utils.io.IOUtil;
-
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.file.Files;
-
import junit.framework.TestCase;
+import org.apache.commons.io.IOUtils;
public class FileLocationTest
extends TestCase
@@ -81,7 +79,7 @@ public class FileLocationTest
try ( InputStream stream = location.getInputStream() ) {
ByteArrayOutputStream out = new ByteArrayOutputStream();
- IOUtil.copy( stream, out );
+ IOUtils.copy( stream, out );
assertEquals( testStr, new String(out.toByteArray(), "US-ASCII" )
);
}