Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MockMvc + WebClient (HtmlUnit) + ModelAndView throws 404 (NotFound) [SPR-16795] #21335

Closed
spring-projects-issues opened this issue May 6, 2018 · 1 comment
Assignees
Labels
in: test

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented May 6, 2018

Dilshod Tadjibaev opened SPR-16795 and commented

I have Spring 4.3 version.

I am trying to follow this example for my unit testing:https://docs.spring.io/spring/docs/current/spring-framework-reference/testing.html#spring-mvc-test-server-htmlunit-mah using MockMvc + WebClient (HtmlUnit) but this fails with 404 error if the controller returns ModelAndView. But this works if the controller returns String.


No further details from SPR-16795

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented May 7, 2018

Rossen Stoyanchev commented

I cannot reproduce the problem. Please, provide a sample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test
Projects
None yet
Development

No branches or pull requests

2 participants