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 879d1a34d TIKA-4488: avoid shaded testcontainers classes
879d1a34d is described below

commit 879d1a34df7678c4adabb40ba3a5e1579c5fd402
Author: Tilman Hausherr <[email protected]>
AuthorDate: Sat Oct 18 20:31:50 2025 +0200

    TIKA-4488: avoid shaded testcontainers classes
---
 .../java/org/apache/tika/pipes/s3/tests/S3PipeIntegrationTest.java | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git 
a/tika-integration-tests/tika-pipes-s3-integration-tests/src/test/java/org/apache/tika/pipes/s3/tests/S3PipeIntegrationTest.java
 
b/tika-integration-tests/tika-pipes-s3-integration-tests/src/test/java/org/apache/tika/pipes/s3/tests/S3PipeIntegrationTest.java
index 1cd1a602f..5e7ad0d98 100644
--- 
a/tika-integration-tests/tika-pipes-s3-integration-tests/src/test/java/org/apache/tika/pipes/s3/tests/S3PipeIntegrationTest.java
+++ 
b/tika-integration-tests/tika-pipes-s3-integration-tests/src/test/java/org/apache/tika/pipes/s3/tests/S3PipeIntegrationTest.java
@@ -39,8 +39,6 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.testcontainers.containers.ComposeContainer;
 import org.testcontainers.junit.jupiter.Testcontainers;
-import org.testcontainers.shaded.org.hamcrest.MatcherAssert;
-import org.testcontainers.shaded.org.hamcrest.Matchers;
 import software.amazon.awssdk.auth.credentials.AwsBasicCredentials;
 import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider;
 import software.amazon.awssdk.core.ResponseInputStream;
@@ -157,9 +155,8 @@ class S3PipeIntegrationTest {
             ResponseInputStream<GetObjectResponse> object = 
s3Client.getObject(objectRequest);
             Assertions.assertNotNull(object);
             String data = IOUtils.toString(object, StandardCharsets.UTF_8);
-            MatcherAssert.assertThat(
-                    "Should be able to read the parsed body of the HTML file 
as the body of the document",
-                    data, Matchers.containsString("body-of-" + testFile));
+            Assertions.assertTrue(data.contains("body-of-" + testFile), 
+                    "Should be able to read the parsed body of the HTML file 
as the body of the document");
         }
     }
 

Reply via email to