This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/main by this push:
     new 4a46699  temporary fix for logging going to stdout instead of stderr
4a46699 is described below

commit 4a4669984011b53a7a6ba282aa8a2baa622951a3
Author: tallison <[email protected]>
AuthorDate: Fri May 21 15:06:32 2021 -0400

    temporary fix for logging going to stdout instead of stderr
---
 .../test/java/org/apache/tika/example/SimpleTextExtractorTest.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/tika-example/src/test/java/org/apache/tika/example/SimpleTextExtractorTest.java
 
b/tika-example/src/test/java/org/apache/tika/example/SimpleTextExtractorTest.java
index 278b019..e2db107 100755
--- 
a/tika-example/src/test/java/org/apache/tika/example/SimpleTextExtractorTest.java
+++ 
b/tika-example/src/test/java/org/apache/tika/example/SimpleTextExtractorTest.java
@@ -18,7 +18,6 @@
 package org.apache.tika.example;
 
 import static java.nio.charset.StandardCharsets.UTF_8;
-import static org.junit.Assert.assertEquals;
 
 import java.io.ByteArrayOutputStream;
 import java.io.File;
@@ -27,7 +26,9 @@ import java.io.PrintStream;
 import org.apache.commons.io.FileUtils;
 import org.junit.Test;
 
-public class SimpleTextExtractorTest {
+import org.apache.tika.TikaTest;
+
+public class SimpleTextExtractorTest extends TikaTest {
     @Test
     public void testSimpleTextExtractor() throws Exception {
         String message = "This is Tika - Hello, World! This is simple UTF-8 
text" +
@@ -45,6 +46,6 @@ public class SimpleTextExtractorTest {
 
         System.setOut(out);
 
-        assertEquals(message, buffer.toString(UTF_8.name()).trim());
+        assertContains(message, buffer.toString(UTF_8.name()).trim());
     }
 }

Reply via email to