Skip to content

Commit

Permalink
lab 2 ref updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcodeforce committed Aug 7, 2022
1 parent 2757434 commit 1289b60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/lab2/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This lab is about some Java implementation, if you have no experience in Java yo
* Open Visual Code. Click on “Open Java Project” and pick the refarch-eda-store-inventory from the `eda-tech-academy\lab2\` folder

From there, select / modify the java code and run it from Visual Code.

## Context

The figure illustrates what you need to build, the green rectangle, which is a Java application using Kafka Streams API consuming `items` events and computing `store inventory` events by aggregating at the store level.
Expand All @@ -35,7 +36,7 @@ To do the hands-on exerices, go to the `/lab2/refarch-eda-store-inventory` folde

**Goal:** Test a basic topology inside unit test.

In your IDE go to the `src/test/java/ut` folder and open the class: [TestYourFirstTopology.java](https://github.com/ibm-cloud-architecture/eda-tech-academy/blob/main/lab2/refarch-eda-store-inventory/src/test/java/ut/TestYourFirstTopology.java "Link to apache doc"). The most important elements of this test are:
In your IDE go to the `src/test/java/ut` folder and open the class: [TestYourFirstTopology.java](https://github.com/ibm-cloud-architecture/eda-tech-academy/blob/main/lab2/refarch-eda-store-inventory/src/test/java/ut/TestYourFirstTopology.java). The most important elements of this test are:

* The `TopologyTestDriver` is a class to test a Kafka Streams topology without Kafka. It uses dummy configuration.
* the `TestInputTopic` class is used to pipe test records to a topic in TopologyTestDriver. This is used to send test messages. The creation of this instance needs to specify the serializer or deserialer used.
Expand Down

0 comments on commit 1289b60

Please sign in to comment.