This Spring Boot Test example is to test the Spring Boot application created in this story.

In the project created in the aforementioned story, modify the Bazel WORKSPACE to add the test dependencies:

......maven_install(
artifacts = [
......# test
"org.springframework:spring-test:5.2.13.RELEASE",
"org.springframework.boot:spring-boot-test:2.3.9.RELEASE",
"org.springframework.boot:spring-boot-starter-test:2.3.9.RELEASE"