|
|
|
|
|
by heurisko
1612 days ago
|
|
> Also, what does @SpringBootTest actually do? How does it work? What if I need to do <anything that doesn't align with the simplest use case that the Spring devs cater to>? Who knows! "Just add the annotation, it's easy!" (but not simple - it's extremely, and extremely needlessly, complex) You can read the documentation to find out what every annotation does. https://docs.spring.io/spring-boot/docs/current/reference/ht... There are several different annotations that you can use to test each particular "slice" of your application, ranging from a fully embedded server, to just testing the controller layer without the embedded server, to just testing the data layer without controllers or servers. |
|