I have a RepositoryRestController that exposes resources for some persistent entities.
RepositoryRestController
I have a method on my controller that takes a PersistentEnt
PersistentEnt
I ended up for now with:
@RunWith(SpringRunner.class) @SpringBootTest @AutoConfigureMockMvc
The downsite of it is that the test would start the full Spring application context (but without the server).