I am trying to write a unit test for my Spring controller using MockMvc. The issue is that if I have path variable in the URL I end up getting a 404.
Here is my controller code:
I've tried use param, content type JSON and also specifying the string in the path directly. What's going wrong? Please suggest. I am unable to test any end point containing path variables, the ones request params and request bodies go fine. I'm using SpringBoot 2.1.3.RELEASE and Java 8.