mercredi 3 août 2016

How can I use @WebMvcTest and also add in my own custom filters?

Spring Boot 1.4 added @WebMvcTest that wire up the parts needed to do test a web slice of my application. This is fantastic, however I also want to ensure my custom filters and security code is wired up so I can validate that is working correctly too.

How can I add in custom filters when using @WebMvcTest?

Aucun commentaire:

Enregistrer un commentaire