Browse Source

Fixes #8198 KStreams testing docs use non-existent method pipe (#6678)

Minor fix of #8198 apache/kafka-site#210

Reviewers: John Roesler <john@confluent.io>, Bill Bejeck <bbejeck@gmail.com>
pull/7024/head
slim 5 years ago committed by Bill Bejeck
parent
commit
8cabd44e1d
  1. 2
      docs/streams/developer-guide/testing.html

2
docs/streams/developer-guide/testing.html

@ -99,7 +99,7 @@ TopologyTestDriver testDriver = new TopologyTestDriver(topology, props); @@ -99,7 +99,7 @@ TopologyTestDriver testDriver = new TopologyTestDriver(topology, props);
</p>
<pre>
ConsumerRecordFactory&lt;String, Integer&gt; factory = new ConsumerRecordFactory&lt;&gt;("input-topic", new StringSerializer(), new IntegerSerializer());
testDriver.pipe(factory.create("key", 42L));
testDriver.pipeInput(factory.create("key", 42L));
</pre>
<p>
To verify the output, the test driver produces <code>ProducerRecord</code>s with key and value type

Loading…
Cancel
Save