If you’re a web developer like me, then you probably know that writing tests for an application means that you have to test various parts of the application. Modern web architectures usually contain the necessary front-end logic, a REST back-end and some data persistence. Having to test your application means that you want to cover most of these, if not all.
So, a while back I wrote a Spring Boot application, quite a simple one though, but it perfectly shows you how this modern web architecture works. The last couple of weeks I spent some time trying to test each aspect of the application and I wrote some articles about each and every aspect. If you’re interested in how to test your application, then here’s a small overview:
- Writing unit tests using AssertJ and Mockito
- Testing your Spring Data Repository with DBUnit
- Writing integration tests for your REST API using REST-Assured
- Writing functional tests using Selenium/FluentLenium