[
https://issues.apache.org/jira/browse/KAFKA-20988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18108161#comment-18108161
]
Shantanu commented on KAFKA-20988:
----------------------------------
Opened GitHub PR: https://github.com/apache/kafka/pull/23279
> Remove hamcrest from streams test fixtures
> ------------------------------------------
>
> Key: KAFKA-20988
> URL: https://issues.apache.org/jira/browse/KAFKA-20988
> Project: Kafka
> Issue Type: Sub-task
> Components: streams
> Reporter: Shantanu
> Assignee: Shantanu
> Priority: Major
>
> Subtask of [KAFKA-20948] (migrate hamcrest tests to JUnit).
> Scope: streams test fixtures and {{org.apache.kafka.test}} mock helpers that
> still use {{org.hamcrest}}. This is not covered by existing package-scoped
> subtasks.
> Files:
> * streams/src/testFixtures/java/org/apache/kafka/streams/utils/TestUtils.java
> *
> streams/src/testFixtures/java/org/apache/kafka/streams/utils/UniqueTopicSerdeScope.java
> * streams/src/testFixtures/java/org/apache/kafka/test/MockApiProcessor.java
> * streams/src/testFixtures/java/org/apache/kafka/test/MockClientSupplier.java
> * streams/src/testFixtures/java/org/apache/kafka/test/StreamsTestUtils.java
> * streams/src/test/java/org/apache/kafka/test/MockApiFixedKeyProcessor.java
> Out of scope: {{AssignmentTestUtils}} still exposes custom Hamcrest
> {{Matcher}}s used by unclaimed {{processor.internals.assignment}} tests, so
> the {{:streams}} {{testFixturesImplementation libs.hamcrest}} dependency is
> retained.
> Convert hamcrest {{assertThat}} usage to JUnit 5 assertions. No production
> code changes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)