Skip to content
Advertisement

The request is not being executed in rest controller test

I have a test method for one of the mappings where I provide all required data for the test

JavaScript

Here is the controller itself

JavaScript

But after running it I get this exception about failing to create Pageble object

JavaScript

Advertisement

Answer

The problem was solve by adding extra configuration for mockMvc

JavaScript
Advertisement