|
|
@ -155,6 +155,7 @@ public class PathMatchingUrlHandlerMappingTests { |
|
|
|
chain = getHandler(mapping, wac, request); |
|
|
|
chain = getHandler(mapping, wac, request); |
|
|
|
assertThat(chain.getHandler()).isSameAs(defaultBean); |
|
|
|
assertThat(chain.getHandler()).isSameAs(defaultBean); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mapping.getPatternParser() != null) { |
|
|
|
request = new MockHttpServletRequest("GET", "/administrator/testing/longer/bla"); |
|
|
|
request = new MockHttpServletRequest("GET", "/administrator/testing/longer/bla"); |
|
|
|
chain = getHandler(mapping, wac, request); |
|
|
|
chain = getHandler(mapping, wac, request); |
|
|
|
assertThat(chain.getHandler()).isSameAs(bean); |
|
|
|
assertThat(chain.getHandler()).isSameAs(bean); |
|
|
@ -162,6 +163,7 @@ public class PathMatchingUrlHandlerMappingTests { |
|
|
|
request = new MockHttpServletRequest("GET", "/administrator/testing/longer/test.jsp"); |
|
|
|
request = new MockHttpServletRequest("GET", "/administrator/testing/longer/test.jsp"); |
|
|
|
chain = getHandler(mapping, wac, request); |
|
|
|
chain = getHandler(mapping, wac, request); |
|
|
|
assertThat(chain.getHandler()).isSameAs(bean); |
|
|
|
assertThat(chain.getHandler()).isSameAs(bean); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
request = new MockHttpServletRequest("GET", "/administrator/testing/longer2/notmatching/notmatching"); |
|
|
|
request = new MockHttpServletRequest("GET", "/administrator/testing/longer2/notmatching/notmatching"); |
|
|
|
chain = getHandler(mapping, wac, request); |
|
|
|
chain = getHandler(mapping, wac, request); |
|
|
|