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/13 13:22:12 UTC

[tika] 02/02: fix bad import

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

commit ca35eb2ae3ca8729fac9a0efe2c840b23cea7187
Author: tallison <ta...@apache.org>
AuthorDate: Fri May 13 09:21:59 2022 -0400

    fix bad import
---
 tika-eval/tika-eval-app/pom.xml                              |  6 ------
 .../java/org/apache/tika/eval/app/ProfilerBatchTest.java     | 12 ++++++------
 2 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/tika-eval/tika-eval-app/pom.xml b/tika-eval/tika-eval-app/pom.xml
index fd455b459..39132af5b 100644
--- a/tika-eval/tika-eval-app/pom.xml
+++ b/tika-eval/tika-eval-app/pom.xml
@@ -74,12 +74,6 @@
       <type>test-jar</type>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>org.testng</groupId>
-      <artifactId>testng</artifactId>
-      <version>RELEASE</version>
-      <scope>test</scope>
-    </dependency>
   </dependencies>
   <build>
     <plugins>
diff --git a/tika-eval/tika-eval-app/src/test/java/org/apache/tika/eval/app/ProfilerBatchTest.java b/tika-eval/tika-eval-app/src/test/java/org/apache/tika/eval/app/ProfilerBatchTest.java
index a297b2197..dde4c45bc 100644
--- a/tika-eval/tika-eval-app/src/test/java/org/apache/tika/eval/app/ProfilerBatchTest.java
+++ b/tika-eval/tika-eval-app/src/test/java/org/apache/tika/eval/app/ProfilerBatchTest.java
@@ -18,7 +18,7 @@
 package org.apache.tika.eval.app;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.testng.AssertJUnit.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertTrue;
 
 import java.io.IOException;
 import java.nio.file.DirectoryStream;
@@ -119,11 +119,11 @@ public class ProfilerBatchTest {
         debugTable(ExtractProfiler.EXCEPTION_TABLE);
         debugTable(ExtractProfiler.EXTRACT_EXCEPTION_TABLE);
         assertEquals(10, fNameList.size());
-        assertTrue("file1.pdf", fNameList.contains("file1.pdf"));
-        assertTrue("file2_attachANotB.doc", fNameList.contains("file2_attachANotB.doc"));
-        assertTrue("file3_attachBNotA.doc", fNameList.contains("file3_attachBNotA.doc"));
-        assertTrue("file4_emptyB.pdf", fNameList.contains("file4_emptyB.pdf"));
-        assertTrue("file7_badJson.pdf", fNameList.contains("file7_badJson.pdf"));
+        assertTrue(fNameList.contains("file1.pdf"), "file1.pdf");
+        assertTrue(fNameList.contains("file2_attachANotB.doc"), "file2_attachANotB.doc");
+        assertTrue(fNameList.contains("file3_attachBNotA.doc"), "file3_attachBNotA.doc");
+        assertTrue(fNameList.contains("file4_emptyB.pdf"), "file4_emptyB.pdf");
+        assertTrue(fNameList.contains("file7_badJson.pdf"), "file4_emptyB.pdf");
     }
 
     @Test