From the course: Building RESTful Web Services with DropWizard

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

HealthCheck overview for testing

HealthCheck overview for testing

- [Instructor] Health checks give you a way of adding small tests to your application. This allows you to verify that your application is functioning correctly in production. So also, for the remainder of this chapter, we'll take a look at an example application directly from the dropwizard repo. You can get it from this link directly, or from the exercise files. So if you don't get it directly from dropwizard here, you can also go into the exercise files, into chapter five, and get the application right here, so dropwizard master. That's exactly what was at the time of recording this particular repo here. So let's go into Visual Studio Code, and let's take a look at the health checks. So if you go into the files here, you drop to dropwizard example, then go into source, main, Java, and then go into health. And then in this folder, you're going to get the file with a health check. So basically, what we're doing here,…

Contents