codingkiddo opened a new pull request, #22259:
URL: https://github.com/apache/kafka/pull/22259
### Summary
This PR improves `QueryableStateIntegrationTest` by replacing an unasserted
range-query loop with deterministic assertions.
Previously, `shouldBeAbleToQueryMapValuesState()` iterated over
`myMapStore.range("hello", "kafka")` and printed the returned records using
`System.out.println`, but did not verify the range-query result.
This change:
- asserts the expected range-query records
- verifies that the expected number of records was returned
- adds a similar result-count assertion to the nearby prefix-scan test
### Testing
```bash
./gradlew streams:integration-tests:test \
--tests
org.apache.kafka.streams.integration.QueryableStateIntegrationTest.shouldBeAbleToQueryMapValuesState
\
--rerun-tasks
./gradlew streams:integration-tests:test \
--tests
org.apache.kafka.streams.integration.QueryableStateIntegrationTest.shouldBeAbleToQueryKeysWithGivenPrefix
\
--rerun-tasks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]