This is an automated email from the ASF dual-hosted git repository.
tilman pushed a commit to branch branch_3x
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/branch_3x by this push:
new c3a844f7f TIKA-4488: avoid shaded testcontainers classes
c3a844f7f is described below
commit c3a844f7f9ae77c23a992a800dde70c0a677c996
Author: Tilman Hausherr <[email protected]>
AuthorDate: Sat Oct 18 20:32:09 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 6cd221f9a..eed188dbd 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");
}
}