You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ti...@apache.org on 2022/05/22 12:01:48 UTC

[tika] branch main updated: TIKA-3773: isolate test that redirects System

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

tilman 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 c44e70e0d TIKA-3773: isolate test that redirects System
c44e70e0d is described below

commit c44e70e0d3412a29a8594d97b91da7bd0f6872c5
Author: Tilman Hausherr <ti...@apache.org>
AuthorDate: Sun May 22 14:01:38 2022 +0200

    TIKA-3773: isolate test that redirects System
---
 .../test/java/org/apache/tika/example/SimpleTextExtractorTest.java    | 4 ++++
 1 file changed, 4 insertions(+)

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 8ca4050af..6b2727223 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
@@ -25,9 +25,13 @@ import java.io.PrintStream;
 
 import org.apache.commons.io.FileUtils;
 import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.parallel.Isolated;
 
 import org.apache.tika.TikaTest;
 
+// because System is caught
+// https://junit.org/junit5/docs/snapshot/user-guide/#writing-tests-parallel-execution-synchronization
+@Isolated 
 public class SimpleTextExtractorTest extends TikaTest {
     @Test
     public void testSimpleTextExtractor() throws Exception {