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

Add ability to check that attribute does not exist in Spring MVC test framework [SPR-10509] #15141

spring-issuemaster opened this issue May 2, 2013 · 2 comments


None yet
2 participants
Copy link

commented May 2, 2013

Piotr Jagielski opened SPR-10509 and commented

It would be useful to have the ability to check that an attribute does not exist in the Spring MVC test framework.

Currently ModelResultMatchers has a method attributeExists(). I propose adding a new method attributeDoesNotExist().

Alternatively, expect(model().attribute("attribute", null)) should pass when the attribute is not available, but it currently fails with a NullPointerException instead.

Affects: 3.2.2

Referenced from: commits 98da5a7, 9095770

0 votes, 5 watchers


This comment has been minimized.

Copy link
Collaborator Author

commented Jun 1, 2013

Deline Neo commented

Submitted pull request: #296


This comment has been minimized.

Copy link
Collaborator Author

commented Jul 30, 2013

Rossen Stoyanchev commented

Thanks for the pull request. It has been applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.