Your stack trace compared to the selected pattern
Jump to solutionsExpand frames
java.lang.AssertionError: Status expected:<200> but was:<404>
JaviRpo, 3 months ago
AssertionErrors is thrown when the test is waiting for a specific status code and the service tested returns a different one.
This error usually occurs for one of the following reasons:
- The application has not started correctly and the service is not available. In this case, you need to check any log in the console when the spring context starts.
- The service is running and it returns a different status code. In this case, you need to debug your code to check what is happen.