Table of Contents
-
Get the code:
-
checkout repo
[email protected]:ollin/cdc-workshop.git
-
cd into
cdc-workshop
-
-
Check your setup:
-
run
./gradlew check
(on windows:./gradlew.bat
)
-
-
Run the tests:
-
run
./gradlew clean test
(on windows:./gradlew.bat
)
-
✔ ~/dev/src/github.com/ollin/cdc-workshop [master|✚ 2] 15:59 $ tree -L 2 . ├── address-service # <-- producer │ ├── build │ ├── build.gradle │ ├── README.adoc │ └── src ├── build.gradle # <-- build file for both ├── gradle │ └── wrapper ├── gradlew ├── gradlew.bat ├── invoice-service # <-- consumer │ ├── build │ ├── build.gradle │ ├── README.adoc │ ├── src │ └── target ├── out │ └── production ├── presentation │ ├── build │ ├── build.gradle │ └── src ├── README.adoc └── settings.gradle
cdc-workshop/invoice-service/src/test/java/net/nautsch/invoice/pact/AddressServiceAdapterTest.java
...
link:../../../../invoice-service/src/test/java/net/nautsch/invoice/pact/AddressServiceAdapterTest.java[role=include]
...
net.nautsch.address.Addresses
...
link:../../../../address-service/src/main/java/net/nautsch/address/Addresses.java[role=include]
...
Change the production code! Jan Wloka to Bernd Wloka.
Whats wrong with the address acceptance test? Fix it!
Run the tests.
Why does the pact test pass? And the acceptance test did not?
Let’s discuss.
Thx!!!
Further Reading:
-
This silde deck:
./gradlew asciidoctor