spring-projects/spring-framework — pull request #374 by bclozel (2013-10-04 12:34:40+00:00)
Title: Support AntPathMatch URLs in URL ResultMatchers

Prior to this commit, one could only match exact URLs in redirectedUrl
and forwardedUrl ResultMatchers. When creating a resource with
a REST service, URLs often contain the id the new resource,
like "/resource/12".

This commit updates those ResultMatchers to support both
exact matches and AntPath matches. The former URL then can be
tested against "/resource/*" in MVC tests.

The documentation is updated and underlines that "?" and "*" chars
should be escaped when testing for an exact match.

Issue: SPR-10789