From the course: Spring Cloud GCP: Setting Up a Cloud SQL Database
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Add tests for the GET endpoint
From the course: Spring Cloud GCP: Setting Up a Cloud SQL Database
Challenge: Add tests for the GET endpoint
(upbeat music) - [Instructor] Now that we have learned about some aspects of testing an app using Cloud SQL, we will put it into practice in this video with a challenge. In this chapter, we have learned how to unit test and integration test a Java app. For this challenge, we are going to build on this simple Spring app and write unit and integration tests. We are going to build on a simple, not perfect Spring boot app that has the puzzle object or entity as the main resource for the API. This app also has a puzzle controller to manage API requests and puzzle resources. We will focus on the get method and the puzzle controller for this challenge. Our app also has a puzzle repository interface to manage common database interactions like saving or deleting puzzles. And finally, we have unit and integration test files with example tests we wrote earlier in this course, and some method hitters that can be used in this…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.