spring contract (cdc) consumer

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.

  1. 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:

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s