Skip to content

Commit c3a844f

Browse files
committed
TIKA-4488: avoid shaded testcontainers classes
1 parent 1ce686b commit c3a844f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tika-integration-tests/tika-pipes-s3-integration-tests/src/test/java/org/apache/tika/pipes/s3/tests/S3PipeIntegrationTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
import org.slf4j.LoggerFactory;
4040
import org.testcontainers.containers.ComposeContainer;
4141
import org.testcontainers.junit.jupiter.Testcontainers;
42-
import org.testcontainers.shaded.org.hamcrest.MatcherAssert;
43-
import org.testcontainers.shaded.org.hamcrest.Matchers;
4442
import software.amazon.awssdk.auth.credentials.AwsBasicCredentials;
4543
import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider;
4644
import software.amazon.awssdk.core.ResponseInputStream;
@@ -157,9 +155,8 @@ void s3PipelineIteratorS3FetcherAndS3Emitter() throws Exception {
157155
ResponseInputStream<GetObjectResponse> object = s3Client.getObject(objectRequest);
158156
Assertions.assertNotNull(object);
159157
String data = IOUtils.toString(object, StandardCharsets.UTF_8);
160-
MatcherAssert.assertThat(
161-
"Should be able to read the parsed body of the HTML file as the body of the document",
162-
data, Matchers.containsString("body-of-" + testFile));
158+
Assertions.assertTrue(data.contains("body-of-" + testFile),
159+
"Should be able to read the parsed body of the HTML file as the body of the document");
163160
}
164161
}
165162

0 commit comments

Comments
 (0)