KAFKA-6474: Rewrite tests to use new public TopologyTestDriver [part 3]#5052
KAFKA-6474: Rewrite tests to use new public TopologyTestDriver [part 3]#5052guozhangwang merged 2 commits intoapache:trunkfrom
Conversation
* Refactor: - KStreamWindowReduceTest - KTableMapKeysTest - SessionWindowedKStreamImplTest - TimeWindowedKStreamImplTest
mjsax
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the PR!
Waiting for second review and Jenkins to pass before merging.
guozhangwang
left a comment
There was a problem hiding this comment.
Left a couple comments on checking @SuppressWarnings("unchecked"). Otherwise LGTM!
| processData(); | ||
| final SessionStore<String, String> sessionStore = (SessionStore<String, String>) driver.allStateStores().get("reduced"); | ||
| final List<KeyValue<Windowed<String>, String>> data = StreamsTestUtils.toList(sessionStore.fetch("1", "2")); | ||
| try (final TopologyTestDriver driver = new TopologyTestDriver(builder.build(), props, 0L)) { |
There was a problem hiding this comment.
I think some of the above @SuppressWarnings("unchecked") can be removed now as well; could you double check?
There was a problem hiding this comment.
Yes, they can. Thank for catching this.
| processData(); | ||
| final WindowStore<String, String> windowStore = (WindowStore<String, String>) driver.allStateStores().get("reduced"); | ||
| final List<KeyValue<Windowed<String>, String>> data = StreamsTestUtils.toList(windowStore.fetch("1", "2", 0, 1000)); | ||
| try (final TopologyTestDriver driver = new TopologyTestDriver(builder.build(), props, 0L)) { |
There was a problem hiding this comment.
Ditto here for @SuppressWarnings("unchecked") above?
|
retest this please |
|
I keep getting an (unrelated) timeout error on |
|
@h314to This is a known issue and is being fixed. |
|
Merged to trunk, thanks @h314to ! |
|
Great! :) |
…3] (apache#5052) * KAFKA-6474: Rewrite tests to use new public TopologyTestDriver [part 3] * Refactor: - KStreamWindowReduceTest - KTableMapKeysTest - SessionWindowedKStreamImplTest - TimeWindowedKStreamImplTest * Remove unnecessary @SuppressWarnings(unchecked) Reviewers: Bill Bejeck <bill@confluent.io>, Matthias J. Sax <matthias@confluent.io>, Guozhang Wang <wangguoz@gmail.com>
This PR is a further step towards the complete replacement of
KStreamTestDriverwithTopologyTestDriver. These straightforward changes were split from another PR to simplify the review process.