I'm using spring-data-jpa @EnableSpringDataWebSupport
and DomainClassConverter
to not manually lookup the instances via the repository. When a do a controller test (MockMvc standalone setup test) on a controller like
@RequestMapping(value = '/user/{userId}', method = RequestMethod.GET)
public UserDetails detail(@PathVariable('userId') User user) {
...
}
I get a ConversionNotSupportedException
. Is it possible to test controllers like this? What should I do?