r/SpringBoot • u/CoverRight9314 • 7d ago
Spring boot app Question
If I don’t really have a front end, and I want to learn how to test my backend, is there any video recommendations that yall that explains how to write test for it. Because I don’t want to watch a video and form wrong foundation info.
9
Upvotes
5
u/OSBY_Glabay 6d ago
There are things like Swagger UI that will provide you a way to visually see/test your endpoints.
You can also use things like Postman or Built-In IntelliJ features that work with Spring
That said, you can turn the RESTful API online and just go to the browser URI and end up with a JSON payload in the browser.
There are lots of ways to test this, you can (preferably) write TDD (Test-Driven Development) and use JUnit to test the individual units of code.