Skip to content

Commit aba7b24

Browse files
authored
add inline code copy to first KStreams app tutorial (#1615)
1 parent b12a53b commit aba7b24

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

_includes/tutorials/creating-first-apache-kafka-streams-application/kstreams/markup/dev/make-topology.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The `peek` function allows you to observe and act on events and they flow throug
1818

1919
Once the topology is defined within the builder, the `buildTopology` function returns an instance of the `Topology` created from `builder.build`. Separating the building of the `Topology` in a function is useful for testing purposes, which we will see in the **Test It** section of the tutorial.
2020

21-
Now go ahead and create the full Java source file at `src/main/java/io/confluent/developer/KafkaStreamsApplication.java`.
21+
Now go ahead and create the full Java source file at +++<code class="copy-inline">src/main/java/io/confluent/developer/KafkaStreamsApplication.java</code>+++.
2222

2323
+++++
2424
<pre class="snippet"><code class="java">{% include_raw tutorials/creating-first-apache-kafka-streams-application/kstreams/code/src/main/java/io/confluent/developer/KafkaStreamsApplication.java %}</code></pre>

_includes/tutorials/creating-first-apache-kafka-streams-application/kstreams/markup/dev/make-util.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Now create a utility class that provides functions to support our tutorial. You may decide not to include these types of functions in the production version of your application, however, they are useful for getting started quickly. This utility class includes functions to create our Kafka topics and generate sample event data we can use to exercise our Kafka Streams topology.
22

3-
Create the following file at `src/main/java/io/confluent/developer/Util.java`.
3+
Create the following file at +++<code class="copy-inline">src/main/java/io/confluent/developer/Util.java</code>+++.
44

55
+++++
66
<pre class="snippet"><code class="java">{% include_raw tutorials/creating-first-apache-kafka-streams-application/kstreams/code/src/main/java/io/confluent/developer/Util.java %}</code></pre>

_includes/tutorials/creating-first-apache-kafka-streams-application/kstreams/markup/test/make-test-file.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
First, create a test file at `configuration/test.properties`:
1+
First, create a test file at +++<code class="copy-inline">configuration/test.properties</code>+++:
22

33
+++++
44
<pre class="snippet"><code class="shell">{% include_raw tutorials/creating-first-apache-kafka-streams-application/kstreams/code/configuration/test.properties %}</code></pre>

_includes/tutorials/creating-first-apache-kafka-streams-application/kstreams/markup/test/make-topology-test.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
////
77
8-
Now create the following file at `src/test/java/io/confluent/developer/KafkaStreamsApplicationTest.java`. Testing a Kafka streams application requires a bit of test harness code, but happily the `org.apache.kafka.streams.TopologyTestDriver` class makes this much more pleasant that it would otherwise be.
8+
Now create the following file at +++<code class="copy-inline">src/test/java/io/confluent/developer/KafkaStreamsApplicationTest.java</code>+++. Testing a Kafka streams application requires a bit of test harness code, but happily the `org.apache.kafka.streams.TopologyTestDriver` class makes this much more pleasant that it would otherwise be.
99
1010
////
1111
You'll want to update the name of the test method from "exampleTest" to something more meaningful for your tutorial

0 commit comments

Comments
 (0)