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 669006d  fix broken unit test caused by logging to stdout rather than 
stderr
669006d is described below

commit 669006d68add50824d5af867589587203cbb4063
Author: tballison <[email protected]>
AuthorDate: Fri May 21 14:05:10 2021 -0400

    fix broken unit test caused by logging to stdout rather than stderr
---
 .../test/java/org/apache/tika/example/SimpleTypeDetectorTest.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/tika-example/src/test/java/org/apache/tika/example/SimpleTypeDetectorTest.java
 
b/tika-example/src/test/java/org/apache/tika/example/SimpleTypeDetectorTest.java
index 1243e75..ad6a60c 100755
--- 
a/tika-example/src/test/java/org/apache/tika/example/SimpleTypeDetectorTest.java
+++ 
b/tika-example/src/test/java/org/apache/tika/example/SimpleTypeDetectorTest.java
@@ -25,8 +25,10 @@ import java.io.PrintStream;
 
 import org.junit.Test;
 
+import org.apache.tika.TikaTest;
+
 @SuppressWarnings("deprecation")
-public class SimpleTypeDetectorTest {
+public class SimpleTypeDetectorTest extends TikaTest {
 
     @Test
     public void testSimpleTypeDetector() throws Exception {
@@ -39,7 +41,7 @@ public class SimpleTypeDetectorTest {
 
         System.setOut(out);
 
-        assertEquals("pom.xml: application/xml", 
buffer.toString(UTF_8.name()).trim());
+        assertContains("pom.xml: application/xml", 
buffer.toString(UTF_8.name()).trim());
     }
 
 }

Reply via email to