any23-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hansbre...@apache.org
Subject any23 git commit: ANY23-359 resolved deprecation warning in Any23Test
Date Mon, 09 Jul 2018 22:13:38 GMT
Repository: any23
Updated Branches:
  refs/heads/master 99ff8a421 -> f9f316435


ANY23-359 resolved deprecation warning in Any23Test


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

Branch: refs/heads/master
Commit: f9f31643570cee422f2b7d9c7ccfe82d3d9d688a
Parents: 99ff8a4
Author: Hans <firedrake93@gmail.com>
Authored: Mon Jul 9 17:09:15 2018 -0500
Committer: Hans <firedrake93@gmail.com>
Committed: Mon Jul 9 17:09:15 2018 -0500

----------------------------------------------------------------------
 core/src/test/java/org/apache/any23/Any23Test.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/any23/blob/f9f31643/core/src/test/java/org/apache/any23/Any23Test.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/any23/Any23Test.java b/core/src/test/java/org/apache/any23/Any23Test.java
index d96a983..085db04 100644
--- a/core/src/test/java/org/apache/any23/Any23Test.java
+++ b/core/src/test/java/org/apache/any23/Any23Test.java
@@ -63,6 +63,7 @@ import org.slf4j.LoggerFactory;
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
 import java.net.URISyntaxException;
+import java.nio.charset.StandardCharsets;
 import java.util.List;
 
 import static org.apache.any23.extractor.ExtractionParameters.ValidationMode;
@@ -477,8 +478,9 @@ public class Any23Test extends Any23OnlineTestBase {
 
     @Test
     public void testMicrodataSupport() throws Exception {
-        final String htmlWithMicrodata = IOUtils.toString(this.getClass()
-                .getResourceAsStream("/microdata/microdata-basic.html"));
+        final String htmlWithMicrodata = IOUtils.toString(getClass()
+                .getResourceAsStream("/microdata/microdata-basic.html"),
+                StandardCharsets.UTF_8);
         assertExtractorActivation(htmlWithMicrodata, MicrodataExtractor.class);
     }
 


Mime
View raw message