Rossen Stoyanchev
fe4472dbeb
MockHttpServletRequestBuilder decodes pathInfo
...
Previously MockHttpServletRequestBuilder calculated the pathInfo from the
provided URL without decoding the value. This meant that the pathInfo
incorrectly included URL encoded values.
Now MockHttpServletRequestBuilder properly decodes the pathInfo.
Backport of #0cd427bdd35e668dda6332ae2885d94c222d9c49.
Fixes: SPR-16453
8 years ago
Juergen Hoeller
4ccf33e36b
Javadoc format and related polishing
...
(cherry picked from commit 9d0e62e)
8 years ago
Juergen Hoeller
19640ec3f9
Log non-loadable TestExecutionListener classes at debug level only
...
Issue: SPR-16369
8 years ago
Rossen Stoyanchev
d62dd2dd8d
Polish MockRestServiceServer code
...
Cherry picked from #7ab4d0ca08
8 years ago
Rossen Stoyanchev
0a30b71dc3
Fix failing tests caused by previous commit
8 years ago
Rossen Stoyanchev
03118542f4
MockHttpInputMessage respects getBody contract
...
Issue: SPR-16367
8 years ago
Juergen Hoeller
f09e252417
Polishing
8 years ago
Juergen Hoeller
a88c47a120
Properly handle follow-up request after failure
...
Issue: SPR-16132
8 years ago
Juergen Hoeller
dc0a934c99
MockHttpServletResponse.getDateHeader returns -1 for non-existent header
...
Includes consistent getDateHeader results in both MockHttpServletResponse variants (spring-test and spring-web)
Issue: SPR-16160
(cherry picked from commit 80a0cf7)
8 years ago
Juergen Hoeller
9ca4de1ccf
MockHttpServletRequest.getRequestURL aligns with getServerName/Port
...
Issue: SPR-16138
(cherry picked from commit 0edf4d6)
8 years ago
Juergen Hoeller
5f167fd7f8
Polishing
8 years ago
Juergen Hoeller
9fdc4404a5
Backport selected refinements from the nullability efforts
...
Issue: SPR-15656
8 years ago
Juergen Hoeller
87df393f91
MockPart backport
...
Issue: SPR-15854
8 years ago
Juergen Hoeller
fa2c377405
Downgrade to AspectJ 1.8.9 and merge EhCache 3 tests into spring-context-support
...
Includes latest applicable updates (Jackson 2.8.10, OkHttp 3.8.1, Undertow 1.3.31, Netty 4.1.15)
Issue: SPR-15836
Issue: SPR-15880
8 years ago
Juergen Hoeller
55fa5f2b65
ReflectionTestUtils does not require spring-aop on the classpath
...
Issue: SPR-15757
(cherry picked from commit dd43b6a )
9 years ago
Rossen Stoyanchev
8d743181da
Fix MockMvc + HttpPutFormContentFilter issue
...
Issue: SPR-15753
9 years ago
Juergen Hoeller
a17255a2e3
SimpleRequestExpectationManager properly handles sequential requests with different count
...
Issue: SPR-15672
(cherry picked from commit efb735a)
9 years ago
Juergen Hoeller
50235be746
Avoid JDK 7+ AssertionError constructor in 4.3.x line
9 years ago
Juergen Hoeller
9b647021f7
Allow for HttpOnly cookie result matcher
...
Issue: SPR-15488
(cherry picked from commit 04f0f13)
9 years ago
Juergen Hoeller
38089d8e66
Correct attributeHasNoErrors message in ModelResultMatchers
...
Includes consistent name quoting.
Issue: SPR-15487
(cherry picked from commit 0479dc9)
9 years ago
Juergen Hoeller
8b054840fc
Minimize reflective interaction with annotation instances during retrieval
...
Issue: SPR-15387
(cherry picked from commit 3037277)
9 years ago
Connor Lin
8289bf0aff
Remove a redundant word
...
Closes gh-1361
9 years ago
Juergen Hoeller
21ac764e5c
Polishing
9 years ago
Juergen Hoeller
22ddb35258
HeaderValueHolder.toString() exposes underlying list of header values
...
Issue: SPR-15375
(cherry picked from commit 15bff8f )
9 years ago
Juergen Hoeller
98dbc17591
Polishing
9 years ago
Juergen Hoeller
9de97614a0
Adapt to HtmlUnit 2.25 getCharset() return type at runtime
...
Issue: SPR-15319
9 years ago
Rossen Stoyanchev
e9de3bb85b
Fix wrong access modifier in MockMvc standalone setup
...
Issue: SPR-15248
9 years ago
Juergen Hoeller
b0ef80c3ff
Polishing
9 years ago
Juergen Hoeller
c3cc42d4d3
Avoid double encoding of URIs
...
Issue: SPR-15254
9 years ago
Juergen Hoeller
eff285eb3b
MockHttpServletRequest exposes "HTTP/1.1" as default protocol
...
Issue: SPR-15232
(cherry picked from commit ed85337 )
9 years ago
Stephane Nicoll
e80c251c7a
Update copyright header
9 years ago
Masayasu Yamamoto
56abc4a429
Fix Javadoc in ContentResultMatchers
...
Closes gh-1322
9 years ago
Juergen Hoeller
d4010573af
MockHttpServletRequest returns empty BufferedReader in case of no content
...
Issue: SPR-15215
(cherry picked from commit 0da964f)
9 years ago
Juergen Hoeller
28849e0987
Revisit Assert to avoid single-arg assert methods (with refined messages)
...
Issue: SPR-15196
(cherry picked from commit 1b2dc36)
9 years ago
Rossen Stoyanchev
c8b0ff2fca
Add ExpectedCount#never()
...
Issue: SPR-15168
9 years ago
Rossen Stoyanchev
fcead670f0
Add locking to AbstractRequestExpectationManager
...
This commit ensures that verifying a request, which includes finding
and updating expectations, is done synchronously to avoid concurrent
modification exceptions.
Technically SimpleRequestExpectationManager is not even expected to see
concurrent requests by definition but with
UnorderedRequestExpectationManager it can happen.
Issue: SPR-15029
9 years ago
Vedran Pavić
d1c0ea7d74
Set MockSessionCookieConfig#maxAge default to -1
...
Issue: SPR-15142
(cherry picked from 83beb9d57d558d1386c194b7792c88134105dfa4)
9 years ago
Juergen Hoeller
cce84711c6
MockHttpServletRequestBuilder reliably detects form body content type again
...
Issue: SPR-15116
(cherry picked from commit e88e8f1 )
9 years ago
Juergen Hoeller
c5500b2332
MockHttpServletRequestBuilder supports multiple locales
...
Includes revised content type handling.
Issue: SPR-15116
(cherry picked from commit 02d727f)
9 years ago
Rossen Stoyanchev
b14d189db9
MockRestRequestMatchers can match query params
...
Issue: SPR-14995
9 years ago
Juergen Hoeller
0028b29760
Polishing
9 years ago
Juergen Hoeller
2b0293578f
Consistent use of "URI variables" terminology
...
Issue: SPR-14969
(cherry picked from commit 7a8ec4f )
9 years ago
Rossen Stoyanchev
872d6ef55a
HtmlUnitRequestBuilder detects form encoding type
...
Issue: SPR-14916
9 years ago
Juergen Hoeller
7e7504f5ea
Polishing
9 years ago
Stephane Nicoll
1e3012cb49
Allow to customize TestDispatcherServlet
...
This commit introduces the `DispatcherServletCustomizer` callback
interface that can be used to customize the `DispatcherServlet` that a
`MockMvc` is using.
Previously, only the `dispatchOptions` flag can be customized. This
commit allows to customize any property of `DispatcherServlet` before it
is initialized.
Issue: SPR-14277
9 years ago
Juergen Hoeller
9de28d640e
Polishing
...
(cherry picked from commit 3726c6f)
9 years ago
Juergen Hoeller
37670924f6
Polishing
9 years ago
Juergen Hoeller
d8f7347000
Consistent comma splitting without regex overhead
...
Issue: SPR-14635
(cherry picked from commit 03609c1)
9 years ago
Juergen Hoeller
430180aa96
Polishing
9 years ago
Rossen Stoyanchev
d09b0fe83a
Support target type in JsonPath assertions
...
This change adds support for a target type in JsonPath assertions in
Spring MVC Test.
The existing assertValue(String expression, Object expectedValue)
transparently falls back on using an alternative JsonPath API that
allows specifying the target type to coerce to.
There is also a new overloaded method
assertValue(String expression, Matcher<T> matcher, Class<T> targetType)
for use with Hamcrest matchers where the target type can be specified.
Issue: SPR-14498
(cherry picked from commit 7fdb892)
9 years ago