Phillip Webb
a14bfe9a21
Migrate and verify annotation utility methods
...
Migrate all possible `AnnotationUtils` and `AnnotatedElementUtils`
method to the `MergedAnnotation` API, verify results against the old
implementations.
All migrated methods now call both the new API and the old version and
ensure that the same results or exceptions are raised. A full build of
both Spring Framework and Spring Boot has been executed to ensure, as
much as possible, that the migration does not cause unexpected
regressions.
See gh-22562
2019-03-22 20:40:05 +01:00
Sebastien Deleuze
5a0ac42b85
Merge branch '5.1.x'
2019-03-21 19:17:22 +01:00
Sebastien Deleuze
d4714847a0
Restore 2 digit days format in HttpHeaders
...
As recommended by RFC 7231, this commit restore using 2 digit days
when formatting dates while still using
DateTimeFormatter.RFC_1123_DATE_TIME for parsing.
Closes gh-22478
2019-03-21 18:31:45 +01:00
Sam Brannen
2bbd52c9f3
Polishing
2019-03-19 18:46:05 +01:00
Sam Brannen
fef43048b2
Polish annotation-driven event listener support
2019-03-14 23:13:41 +01:00
stsypanov
29f382b04e
Simplify String concatenation
2019-03-14 17:24:33 +01:00
Sam Brannen
9d2e7ced89
Favor Math.[min|max]() over handcrafted code
...
In line with the general trend toward favoring core JDK APIs for common
tasks in Spring Framework 5.2, this commit replaces handcrafted
statements with Math.min() and Math.max() were applicable.
2019-03-14 16:48:44 +01:00
Juergen Hoeller
40c62139ae
Early resolution of unique factory methods in configuration classes
...
Includes consistent bean class resolution in the enhancement step as well as general reflection optimizations for user-declared methods.
Closes gh-22420
2019-03-12 17:17:24 +01:00
Juergen Hoeller
ac4c37d8e2
Merge branch '5.1.x'
2019-03-07 18:05:46 +01:00
Juergen Hoeller
6c87ef09c1
Polishing
2019-03-07 17:55:32 +01:00
Juergen Hoeller
0b8733747c
Upgrade to SnakeYAML 1.24 and HtmlUnit 2.34.1
2019-03-06 16:40:06 +01:00
Sam Brannen
7abe9c6a08
Polishing
2019-03-06 14:22:16 +01:00
Sam Brannen
c0b6488ed5
Fix typo
2019-03-05 16:47:26 +01:00
www
ef91313342
Use String::isEmpty instead of "".equals(arg) when arg is not null
2019-03-05 14:32:56 +01:00
Sebastien Deleuze
412c673db2
Add missing MockMvc.head Kotlin extension
...
See gh-1951
2019-03-05 09:35:39 +01:00
Sebastien Deleuze
9e873af6ab
Remove infix qualifier from ResultActionsDsl methods
...
The infix form limits the extensibility of the API and
prevents calling `andReturn()`.
See gh-1951
2019-03-04 19:17:21 +01:00
Sebastien Deleuze
0c332286f1
Add MockMvc Kotlin DSL
...
This commit introduces a `MockMvc` Kotlin DSL via a set of
extensions like `MockMvc.get` or `MockMvc.request`
that provide a Kotlin idiomatic and easily discoverable
API while staying close to the original Java API design.
Closes gh-1951
2019-03-04 18:00:49 +01:00
Sam Brannen
70cf597484
Remove obsolete overview.html files
2019-03-04 14:07:48 +01:00
Sam Brannen
4112ca7da8
Separate async/sync TestContext event listeners in tests
...
See gh-18490
2019-03-03 21:30:49 +01:00
Sam Brannen
b5fb7437c9
Test exception handling for TestContext event annotations
...
This commit introduces tests for both synchronous and asynchronous
exception handling for TestContext event annotations.
See gh-18490
2019-03-03 16:36:00 +01:00
Sam Brannen
e272e2e151
Support conditional processing in TestContext event annotations
...
This commit introduces support for SpEL expressions for conditional
event processing in annotations such as @BeforeTestClass,
@BeforeTestMethod, etc.
This commit also introduces a new getTestContext() method in
TestContextEvent in order to improve the readability of such SpEL
expressions.
See gh-18490
2019-03-02 17:26:57 +01:00
Sam Brannen
f6d62eda8b
Add missing @Nullable declarations to TestContext return values
2019-03-02 16:36:23 +01:00
Sam Brannen
8649061acc
Polish Javadoc for TestContext
2019-03-02 16:25:23 +01:00
Sam Brannen
7d926a847d
Polish tests for TestContext lifecycle events
...
See gh-18490
2019-03-01 21:26:37 +01:00
Sam Brannen
a16dd95ab7
Polishing
2019-03-01 20:39:25 +01:00
Sam Brannen
416346200f
Polishing
2019-03-01 20:07:09 +01:00
Sam Brannen
297fd7629a
Polishing
2019-03-01 19:34:13 +01:00
Sam Brannen
dd1330d05e
Fix CheckStyle violations
...
See gh-18490
2019-03-01 17:40:32 +01:00
Sam Brannen
2d6624de71
Polish support for publishing TestContext lifecycle events
...
See gh-18490
2019-03-01 15:25:35 +01:00
Frank Scheffler
34fee867d2
Provide support for publishing TestContext lifecycle events
...
This commit introduces a new EventPublishingTestExecutionListener for
publishing events to the test ApplicationContext. These may be consumed
by @EventListener annotated methods to react to the TestContext
lifecycle. The listener is not registered by default.
Closes gh-18490
2019-03-01 15:22:54 +01:00
Loïc Ledoyen
d77b36bf3b
Open parameter autowiring utility for external use ( #2060 )
...
* Make AutowireUtils public and protect its current API
* Move ParameterAutowireUtils features to AutowireUtils
Closes gh-2060
2019-02-27 15:15:45 +01:00
Sam Brannen
a7770e7448
Remove ApplicationContext dependency from ParameterAutowireUtils
...
This commit is a prerequisite for gh-2060.
2019-02-26 15:22:25 +01:00
Juergen Hoeller
5c2f3079fd
Sync between MockHttpServletResponse copies
...
See gh-22466
2019-02-25 23:14:37 +01:00
stsypanov
1c24dc1f27
Simplify String concatenation
2019-02-25 12:13:35 +01:00
Juergen Hoeller
0652e4b485
Merge branch '5.1.x'
2019-02-22 14:51:00 +01:00
Juergen Hoeller
c3fa900672
Upgrade to Hibernate Validator 5.4.3 and 6.0.15
2019-02-22 14:18:08 +01:00
Juergen Hoeller
783a7ca46b
Merge branch '5.1.x'
2019-02-08 18:16:27 +01:00
Juergen Hoeller
ba0c48b933
Polishing
2019-02-08 18:02:28 +01:00
Juergen Hoeller
d25783329a
Merge branch '5.1.x'
2019-02-07 16:01:14 +01:00
Juergen Hoeller
e9626779ee
@Resource provides dependency descriptor for resolving beans by name
...
Closes gh-22359
2019-02-07 15:56:00 +01:00
Sebastien Deleuze
0b9522c84e
Migrate Kotlin Mockito tests to Mockk
...
Closes gh-22345
2019-02-05 15:47:08 +01:00
Juergen Hoeller
165d2511b9
Upgrade to Apache HttpClient 4.5.7 and Commons FileUpload 1.4
...
Includes RxJava 2.2.6, Netty 4.1.33, Undertow 2.0.17.
2019-02-05 00:46:07 +01:00
Juergen Hoeller
c700ccbc00
Upgrade to Apache HttpClient 4.5.7
...
Includes Hibernate ORM 5.4.1 for integration tests.
2019-02-05 00:10:40 +01:00
Juergen Hoeller
493e9c1ff0
Consistent upgrade to Rome 1.12 and WebJars Locator 0.36
2019-01-24 15:18:43 +01:00
Juergen Hoeller
d37a18ff03
Upgrade to Hibernate Validator 6.0.14 and Apache Johnzon 1.1.11
...
Includes OkHttp MockWebServer 3.12.1.
2019-01-08 00:50:44 +01:00
Juergen Hoeller
7a7958f275
MockMvcResultMatchers.forwardedUrl argument declared as nullable
...
Issue: SPR-17623
2018-12-25 13:20:09 +01:00
Rossen Stoyanchev
38ae282c3b
Update log category precision for all tests
...
Replace the full category capped at 36 chars with the class name only
and 1 char per package, e.g. org.apache.commons.Foo -> o.a.c.Foo
2018-12-12 11:40:33 -05:00
Rossen Stoyanchev
270099383b
Add protected method in StandaloneMockMvcBuilder
...
To allow sub-classes to register additional MVC infrastructure.
Issue: SPR-17520
2018-12-12 11:40:33 -05:00
Juergen Hoeller
9efea7eb73
MockHttpServletRequest preserves original Accept-Language header value
...
Issue: SPR-17566
2018-12-04 22:07:43 +01:00
Juergen Hoeller
d5dab12909
NettyDataBufferFactory.join returns single-element buffer as-is
...
Issue: SPR-17560
2018-12-03 23:52:35 +01:00