Fix tests
This commit is contained in:
@@ -44,7 +44,7 @@ public class KafkaStreamsWordCountApplication {
|
||||
|
||||
public static final String INPUT_TOPIC = "input";
|
||||
public static final String OUTPUT_TOPIC = "output";
|
||||
public static final int WINDOW_SIZE_MS = 1000;
|
||||
public static final int WINDOW_SIZE_MS = 30_000;
|
||||
|
||||
@Bean
|
||||
public Function<KStream<Bytes, String>, KStream<Bytes, WordCount>> process() {
|
||||
|
||||
@@ -2,8 +2,8 @@ spring.cloud.stream:
|
||||
function:
|
||||
definition: process
|
||||
bindings:
|
||||
process-in-0: input
|
||||
process-out-0: output
|
||||
process-in-0: words
|
||||
process-out-0: counts
|
||||
# bindings:
|
||||
# input:
|
||||
# destination: input
|
||||
|
||||
@@ -78,7 +78,7 @@ public class WordCountProcessorApplicationTests {
|
||||
KafkaStreamsWordCountApplication.WordCountProcessorApplication app = new KafkaStreamsWordCountApplication.WordCountProcessorApplication();
|
||||
|
||||
//final Function<KStream<Bytes, String>, KStream<Bytes, KafkaStreamsWordCountApplication.WordCount>> process = app.process();
|
||||
final Function<KStream<Bytes, String>, KStream<Bytes, KafkaStreamsWordCountApplication.WordCount>> process = null;
|
||||
final Function<KStream<Bytes, String>, KStream<Bytes, KafkaStreamsWordCountApplication.WordCount>> process = app.process();
|
||||
|
||||
final KStream<Bytes, KafkaStreamsWordCountApplication.WordCount> output = process.apply(input);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user