DEV Community

Discussion on: How to start with unit testing in Java: A complete introduction to JUnit 5

Collapse
 
aishu_darsh profile image
Aishu darsh

whether we can write tests for exiting Springboot app? I'm having exit code mapper in main class. Need to write test for different exit code and check it's exit code(1/2/3).

Collapse
 
iuriimednikov profile image
Yuri Mednikov

Hi and thanks for your comment. Testing Spring Boot apps is a broad topic, as we have unit tests for services, integration tests for data layer, web layer tests etc. I highly recommend you to read my book "Friendly Webflux" (leanpub.com/friendlywebflux). It has all these aspects covered in a very systematic way. Enjoy!