CDC testing would shift left and help the developers move fast through testing (UAT & integration testing).
following up to previous article, https://lwpro2.wordpress.com/2023/03/26/spring-contract-for-cdc/, this will show an example how to use the CDC from a consumer perspective.
- import the spring stub runner and wiremock library
2. config the sub mode (local or remote), and where/what to download if remote
3. Spring Stub runner would then download the stub, and start the wiremock server with the contract. The test class could then use the wiremock server for testing: