showuon commented on a change in pull request #11242:
URL: https://github.com/apache/kafka/pull/11242#discussion_r692951450



##########
File path: streams/src/test/java/org/apache/kafka/streams/TopologyTest.java
##########
@@ -1168,7 +1169,32 @@ public void 
kGroupedStreamZeroArgCountShouldPreserveTopologyStructure() {
 
     @Test
     public void 
kGroupedStreamNamedMaterializedCountShouldPreserveTopologyStructure() {
-        final StreamsBuilder builder = new StreamsBuilder();
+        Properties streamsProp = new Properties();
+        streamsProp.put(StreamsConfig.APPLICATION_ID_CONFIG, 
"streams-config-test");
+        streamsProp.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, 
"localhost:9092");
+        final StreamsBuilder builder = new StreamsBuilder(streamsProp);
+        builder.stream("input-topic")
+            .groupByKey()
+            .count(Materialized.as("count-store"));
+        final TopologyDescription describe = builder.build().describe();

Review comment:
       An example we put the `stream props` into `StreamsBuilder` constructor 
and build with default store implementation setting for 
`KeyValueBytesStoreSupplier`. And the same for `WindowBytesStoreSupplier` and 
`SessionBytesStoreSupplier` below




-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to