From the course: Learning Spring 6 with Spring Boot 3

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Test Spring Boot applications

Test Spring Boot applications - Spring Tutorial

From the course: Learning Spring 6 with Spring Boot 3

Test Spring Boot applications

- [Instructor] The first additional topic that I want to talk about is testing Spring Boot applications. Now, this is the topic that I have an entire course on in the LinkedIn Learning Library around test driven development specifically with Spring, and I encourage you to check that out. But I want to talk high level through testing because I think it's important to include in a learning course. So the first topic is unit testing itself. Now, you technically don't even need to use Spring when you are doing unit testing, but if you have specific parts of the framework injected into your classes, there are mocks available for many of those that you can inject as mocks into your unit tests, much the same way that you would do mocking on any other unit test. And you basically end up using a simple strategy using the unit test framework itself. Now, when it comes to our controllers, we've got several key aspects that we can…

Contents