You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2022/05/14 10:02:57 UTC

[tika] branch main updated: TIKA-3759 -- fix unit test that fails on windows.

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 98cd7e650 TIKA-3759 -- fix unit test that fails on windows.
98cd7e650 is described below

commit 98cd7e6507356154db443ea573946b1c18d0c88b
Author: tallison <ta...@apache.org>
AuthorDate: Sat May 14 06:02:42 2022 -0400

    TIKA-3759 -- fix unit test that fails on windows.
---
 tika-batch/src/test/java/org/apache/tika/batch/fs/FSUtilTest.java | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tika-batch/src/test/java/org/apache/tika/batch/fs/FSUtilTest.java b/tika-batch/src/test/java/org/apache/tika/batch/fs/FSUtilTest.java
index 7b2adc072..3c1f2c8e5 100644
--- a/tika-batch/src/test/java/org/apache/tika/batch/fs/FSUtilTest.java
+++ b/tika-batch/src/test/java/org/apache/tika/batch/fs/FSUtilTest.java
@@ -30,13 +30,9 @@ public class FSUtilTest {
         Path cwd = Paths.get(".");
         String windows = "C:/temp/file.txt";
         String linux = "/root/dir/file.txt";
-        //this test does not work on linux
-     //   assertThrows(IllegalArgumentException.class, () -> {
-       //     System.out.println(FSUtil.resolveRelative(cwd, windows));
-        //});
-
         assertThrows(IllegalArgumentException.class, () -> {
             FSUtil.resolveRelative(cwd, linux);
+            FSUtil.resolveRelative(cwd, windows);
         });
     }