April 5, 2019
March 20, 2019
We’ve been through a lot. We’ve covered all kinds of flows to be tested on the server side. We’ve seen how to check flows from the controller down to the database, combined with injecting different mocks and services. We’ve got… Continue Reading…
March 6, 2019
We’ve gone over what we needed from Spring to test a controller. And Spring is about to give it to us. Here’s a controller: This controller has GET and POST APIs. It has some logic in it (although this is… Continue Reading…
February 27, 2019
In Spring, Controllers allow external consumers to use REST APIs to call into the application logic. This is very convenient, since we don’t need to write a whole translation level. Spring controllers give us full access to the request parameters… Continue Reading…
February 20, 2019
Hibernate and JPA have done a lot for developers in minimizing the code needed to write database applications. Spring Data does a lot of magic behind the code for us, and we’d like to take advantage of that magic. Let’s… Continue Reading…
January 5, 2022
Today we’ll tackle JDBC options for testing in Spring. Before we start, there’s one more annotation to learn from Spring: @Repository. We put it on a class to tell Spring that this is a data class, talking to a data… Continue Reading…
February 6, 2019
We’ve discussed what Spring can do for us in terms of integration tests so far, but nothing says more integration than database integration. First, let’s define what we want in our integration tests, before we describe how the wonderful people… Continue Reading…
October 4, 2023
October 4, 2023
October 4, 2023
