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 83beb9d57d )
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
10 years ago
Juergen Hoeller
d8f7347000
Consistent comma splitting without regex overhead
...
Issue: SPR-14635
(cherry picked from commit 03609c1 )
10 years ago
Juergen Hoeller
430180aa96
Polishing
10 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 )
10 years ago
Juergen Hoeller
2a82b8fed9
Consistent use of Charset.forName over JDK 7 StandardCharsets in 4.x line
10 years ago
Rob Winch
43faabd4cc
Fix HtmlUnitRequestBuilder merge
...
Previously invoking HtmlUnitRequestBuilder merge caused the pathInfo of
the parent to be corrupted. This could additional invocations with the
same parent.
This fix ensures that the parent is no longer directly used. Instead,
we create a copy of the parent by merging the parent that was passed in
with the copy.
Fixes SPR-14584
10 years ago
Juergen Hoeller
79a56967a1
PersistenceAnnotationBeanPostProcessor obtains default EntityManagerFactory via getBean(Class) algorithm
...
Issue: SPR-7549
(cherry picked from commit 6157fad )
10 years ago
Juergen Hoeller
0bc0453700
Polishing
10 years ago
Juergen Hoeller
35e247aa26
Polishing
10 years ago
Juergen Hoeller
67ba187b6f
Polishing
...
(cherry picked from commit 59a24b4 )
10 years ago
Juergen Hoeller
67f0b1986c
Consistent spelling for StandaloneMockMvcBuilder's addPlaceholderValue
...
(cherry picked from commit a4b6682 )
10 years ago
Juergen Hoeller
aade2d1ec9
Polishing
...
(cherry picked from commit 9475c06 )
10 years ago
Juergen Hoeller
4627545a3b
Polishing
...
(cherry picked from commit eae079a )
10 years ago
Juergen Hoeller
e2ba7c9b8c
MockClientHttpResponse closes body stream on close()
...
Issue: SPR-14563
(cherry picked from commit 47e9360 )
10 years ago
Juergen Hoeller
36e1c82ef5
Backported refinements and polishing
10 years ago
Vladimir L
df556333a8
Add StreamingResponseBody MockMvc sample tests
...
Issue: SPR-14456
(cherry picked from 7da63c)
10 years ago
Sam Brannen
813108a928
Ensure TestContextManager always tracks after-class exception
...
This commit fixes a minor bug introduced in 0adc4921ed .
Issue: SPR-14447
10 years ago
Juergen Hoeller
3c14911401
Polishing
10 years ago
Juergen Hoeller
92d78c10a2
Polishing (backported from master)
10 years ago
Juergen Hoeller
080dcad218
Add missing package-info file for new test.context.web.socket package
...
Issue: SPR-14420
10 years ago
Juergen Hoeller
b204437cef
Polishing
10 years ago
Juergen Hoeller
e5122d084a
Avoid wrapping in plain RuntimeException in favor of IllegalStateException
10 years ago
Juergen Hoeller
dda0942c78
Polishing
10 years ago
Juergen Hoeller
66ec1c1618
Add missing package-info files for common packages
...
Issue: SPR-14420
10 years ago
Sam Brannen
3dbf25e018
Implement equals() & hashCode() in MockServerContainerContextCustomizer
...
Issue: SPR-14367
10 years ago