Home » spring Mock

Tag Archives: spring Mock

Improving Spring Mock-MVC tests


Spring Mock-MVC can be a great way to test Spring Boot REST APIs. Mock-MVC allows us to test Spring-MVC request handling without running a real server. I used Mock-MVC tests in various projects and in my experience they often become quite verbose. This doesn’t have to be bad. However, it often results in copy/pasting code snippets around in test classes. ...

Read More »