Sam Brannen
b612f53e27
Rename doesExist() to exists() for header assertions
7 years ago
Juergen Hoeller
c6b0d85a7c
Consistent available() support in DelegatingServletInputStream
...
Issue: SPR-16416
7 years ago
Ketan Padegaonkar
a0c9fdba12
Fix `DelegatingServletInputStream#available`
...
Ensure that the method returns the correct number of bytes that can be
read without blocking
Issue: #SPR-16416
7 years ago
Sam Brannen
165ca12e6d
Add doesExist() to HeaderAssertions for WebTestClient
7 years ago
Sam Brannen
431494096a
Polishing
7 years ago
Rossen Stoyanchev
49f1aa78eb
Polish
7 years ago
Neonailol
81ca1f7c2b
Add doesExist assertion method to HeaderResultMatchers
7 years ago
Rossen Stoyanchev
97894a1c22
Improve logging dependencies for tests
7 years ago
Juergen Hoeller
91e6274b7d
Upgrade to Apache HttpClient 4.5.5 and Tomcat 8.5.27
7 years ago
Juergen Hoeller
61579ffe7b
Polishing
7 years ago
Juergen Hoeller
9d0e62ef68
Javadoc format and related polishing
7 years ago
Juergen Hoeller
40127bd9ad
Polishing
7 years ago
Rossen Stoyanchev
0c289283ff
Separate from expectations from response creation
...
This commit separates the creation of a response so that it is executed
after the synchronized block inside which requests need to be matched
and validated (for order and count).
This allows a ResponseCreator to be slow or block if it has to.
Issue: SPR-16319
7 years ago
Rossen Stoyanchev
7ab4d0ca08
Polish MockRestServiceServer code
7 years ago
Juergen Hoeller
214576673a
Proper NoClassDefFoundError check against BeanUtils.instantiateClass
...
Issue: SPR-16369
7 years ago
Sam Brannen
c88f11f958
Avoid deprecation warnings on JDK 9 in spring-test
7 years ago
Juergen Hoeller
a15975d94d
Log non-loadable TestExecutionListener classes at debug level only
...
Issue: SPR-16369
7 years ago
Juergen Hoeller
8f6d3feaa0
Tests for non-required MultipartFile parameters
...
Issue: SPR-16329
7 years ago
Juergen Hoeller
73cad470e5
Upgrade to HtmlUnit 2.29 and Selenium 3.8.1
7 years ago
Juergen Hoeller
4a57e26d76
Polishing
7 years ago
Rossen Stoyanchev
0f1f95e090
Add hasJsonPath/doesNotHaveJsonPath assertion options
...
Issue: SPR-16339
7 years ago
Juergen Hoeller
dd4f915234
Upgrade to JCache 1.1 (and Caffeine 2.6.1)
...
Issue: SPR-13574
7 years ago
Brian Clozel
6e587d5c57
Add new WebTestClient header assertions
...
This commit adds new header assertions for `WebTestClient`.
`doesNotExist` tests that a given header is not present:
.expectHeader().doesNotExist("Cache-Control");
`contentTypeCompatibleWith` tests for MediaType compatibility:
.expectHeader().contentTypeCompatibleWith("text/*");
Issue: SPR-16285
7 years ago
Juergen Hoeller
9d27e86951
Upgrade to Hibernate Validator 6.0.7
7 years ago
Rossen Stoyanchev
a8cf275aed
MockServerHttpRequest builder supports query params
...
Issue: SPR-16280
7 years ago
Rossen Stoyanchev
6df1a7874a
MockHttpServletResponse uses correct language header
...
Issue: SPR-16311
7 years ago
Juergen Hoeller
3a51b5a9d2
Upgrade to Hibernate Validator 6.0.6
7 years ago
Juergen Hoeller
f2e8171bfb
Latest dependency updates (RxJava 2.1.7, TestNG 6.13.1, Selenium HtmlUnit Driver 2.28.2)
7 years ago
Juergen Hoeller
a8323f6a27
Latest dependency updates (OkHttp 3.9.1, JRuby 9.1.14, Rome 1.9)
7 years ago
Juergen Hoeller
604017894e
Upgrade to Tiles 3.0.8 (and Selenium HtmlUnit Driver 2.28.1)
7 years ago
sdeleuze
9f1d8517ba
Polish Kotlin source code style
7 years ago
Juergen Hoeller
14a7da8183
Upgrade to Hibernate Validator 6.0.5
7 years ago
Juergen Hoeller
7697b398d5
Polishing
7 years ago
Juergen Hoeller
3e5209bea5
Test dependency updates (Mockito 2.12, HtmlUnit 2.28, Selenium 3.7.1, XMLUnit 2.5.1)
7 years ago
Rossen Stoyanchev
87375fe6f8
ServerHttpRequest exposes SSL certificates
...
Issue: SPR-15964
7 years ago
Rossen Stoyanchev
cb34b0b963
Polish
7 years ago
anton_bondarenko
b487db294b
Fix NullPointer when setting cookies in RequestUriSpec
7 years ago
Rossen Stoyanchev
263da1535b
WebTestClient can be configured with connector
...
Issue: SPR-16168
7 years ago
Rossen Stoyanchev
14f02d7192
Update reference with examples of multipart requests
...
Issue: SPR-16118
7 years ago
Juergen Hoeller
4ec60f08ad
PrintingResultHandler defensively accesses session.getAttributeNames()
...
Issue: SPR-16164
7 years ago
Juergen Hoeller
e5c1deea63
Polishing
7 years ago
Juergen Hoeller
80a0cf71f4
MockHttpServletResponse.getDateHeader returns -1 for non-existent header
...
Includes consistent getDateHeader results in both MockHttpServletResponse variants (spring-test and spring-web)
Issue: SPR-16160
7 years ago
Juergen Hoeller
0edf4d6509
MockHttpServletRequest.getRequestURL aligns with getServerName/Port
...
Issue: SPR-16138
7 years ago
Rossen Stoyanchev
579328bd7a
MockClientHttpRequest|Response support cookie headers
...
Issue: SPR-16124
7 years ago
Juergen Hoeller
295e3b6a99
MockRestServiceServer test for follow-up request after failure
...
Issue: SPR-16132
7 years ago
Eric Pabst
43d88e4a25
Move requests.add(request) into finally block.
...
This avoids "IllegalStateException: Expectations already declared" when
a MockRestServiceServer is used after one request throws an exception.
Issues: SPR-16132
7 years ago
Juergen Hoeller
70ed45020b
Add StatusAssertions.isForbidden
...
Includes aligned quoting for header assertion messages.
Also aligns HeaderAssertionTests class name.
Issue: SPR-16129
7 years ago
Sebastien Deleuze
b9a0e6bbf2
Update documentation about WebTestClient Kotlin issue
...
Issue: SPR-16057
7 years ago
Rossen Stoyanchev
a982123ed5
Decouple ExchangeResult from WiretapRequest/Response
...
This commit decouples ExchangeResult from knowledge about
WiretapClientHttpRequest/Response both of which are now private to
WiretapConnector.
ExchangeResult takes ClientHttpRequest/Response instead along with
promises for the serialized request and response content in the form
of MonoProcessor<byte[]>.
This sets up the possibility for an ExchangeResult to be created
outside and independent of WebTestClient, should we decide to make its
constructor public.
Issue: SPR-16101
7 years ago
Juergen Hoeller
9bab7a2708
Upgrade to Java Activation Framework 1.2 for test runtime
...
Includes upgrade to Hibernate Validator 6.0.4 (where applicable)
Issue: SPR-16115
7 years ago