james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [9/9] james-project git commit: JAMES-2270 Also replace uses of org.apache.commons.io.Charsets
Date Wed, 03 Jan 2018 03:20:43 GMT
JAMES-2270 Also replace uses of org.apache.commons.io.Charsets


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/ab8ea00c
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/ab8ea00c
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/ab8ea00c

Branch: refs/heads/master
Commit: ab8ea00cd2a9067e01f6fcfce58da3a5c4aabcbb
Parents: ba1dd27
Author: Daniel Trebbien <dtrebbien@gmail.com>
Authored: Sat Dec 23 19:26:07 2017 -0800
Committer: benwa <btellier@linagora.com>
Committed: Wed Jan 3 10:18:53 2018 +0700

----------------------------------------------------------------------
 .../james/filesystem/api/AbstractFileSystemTest.java      | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/ab8ea00c/server/container/filesystem-api/src/test/java/org/apache/james/filesystem/api/AbstractFileSystemTest.java
----------------------------------------------------------------------
diff --git a/server/container/filesystem-api/src/test/java/org/apache/james/filesystem/api/AbstractFileSystemTest.java
b/server/container/filesystem-api/src/test/java/org/apache/james/filesystem/api/AbstractFileSystemTest.java
index 5dc5cf4..18e4b3b 100644
--- a/server/container/filesystem-api/src/test/java/org/apache/james/filesystem/api/AbstractFileSystemTest.java
+++ b/server/container/filesystem-api/src/test/java/org/apache/james/filesystem/api/AbstractFileSystemTest.java
@@ -25,8 +25,8 @@ import java.io.File;
 import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.io.InputStream;
+import java.nio.charset.StandardCharsets;
 
-import org.apache.commons.io.Charsets;
 import org.apache.commons.io.FileUtils;
 import org.apache.commons.io.IOUtils;
 import org.junit.After;
@@ -76,7 +76,7 @@ public abstract class AbstractFileSystemTest {
     private void createSubFolderWithAFileIn(String folderName, String fileName, String fileContent)
throws IOException {
         File folder = tmpFolder.newFolder(folderName);
         File file = new File(folder.getAbsolutePath() + "/" + fileName);
-        FileUtils.writeStringToFile(file, fileContent, Charsets.UTF_8);
+        FileUtils.writeStringToFile(file, fileContent, StandardCharsets.UTF_8);
     }
 
     @After
@@ -239,7 +239,7 @@ public abstract class AbstractFileSystemTest {
         InputStream inputStream = null;
         try {
             inputStream = fileSystem.getResource("file:" + temp.getAbsolutePath());
-            assertThat(IOUtils.toString(inputStream, Charsets.UTF_8)).isEqualTo("content");
+            assertThat(IOUtils.toString(inputStream, StandardCharsets.UTF_8)).isEqualTo("content");
         } finally {
             IOUtils.closeQuietly(inputStream);
             temp.delete();
@@ -254,7 +254,7 @@ public abstract class AbstractFileSystemTest {
         InputStream inputStream = null;
         try {
             inputStream = fileSystem.getResource("file://" + temp.getAbsolutePath());
-            assertThat(IOUtils.toString(inputStream, Charsets.UTF_8)).isEqualTo("content");
+            assertThat(IOUtils.toString(inputStream, StandardCharsets.UTF_8)).isEqualTo("content");
         } finally {
             IOUtils.closeQuietly(inputStream);
             temp.delete();
@@ -264,7 +264,7 @@ public abstract class AbstractFileSystemTest {
     @SuppressWarnings("deprecation")
     private File createTempFile(String name, String extension) throws IOException {
         File temp = File.createTempFile(name, extension);
-        FileUtils.write(temp, "content", Charsets.UTF_8);
+        FileUtils.write(temp, "content", StandardCharsets.UTF_8);
         return temp;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message