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
b7d60b9b89
Improve @EventListener documentation
2019-03-04 14:44:44 +01:00
Sam Brannen
70cf597484
Remove obsolete overview.html files
2019-03-04 14:07:48 +01:00
Brian Clozel
3ac1dddb9d
Merge branch '5.1.x'
2019-03-04 13:58:41 +01:00
Andrew Tulloch
090aceb3ad
Fix repeated calls to DataBuffer.write(CharSequence, Charset)
...
Prior to this commit, repeated calls to `DataBuffer.write(CharSequence,
Charset)` would not write the given chars to the expected position in
the original buffer.
This commit fixes that by writing to the `outBuffer.position()`, offset
by the current `DataBuffer.writePosition()`.
Fixes gh-22484
2019-03-04 13:37:06 +01:00
Stephane Nicoll
45b6c0fcb5
Merge branch '5.1.x'
2019-03-04 09:42:10 +01:00
Stephane Nicoll
2137cc4422
Merge pull request #22500 from DamianChlod
...
* pr/22500:
Fix typo in `my-property'
2019-03-04 09:41:42 +01:00
DamianChlod
fe458aabde
Fix typo in `my-property'
...
Closes gh-22500
2019-03-04 09:40:58 +01:00
Sam Brannen
0ca5afd8e4
Fix broken test
2019-03-03 23:08:44 +01:00
Sam Brannen
e7bd305e87
Suppress warnings in tests
2019-03-03 22:17:52 +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
6daf33deff
Document that @Async is not supported in @Configuration classes
2019-03-03 18:29:45 +01:00
Sam Brannen
a9f251db42
Fix broken Javadoc links
2019-03-03 17:18:18 +01:00
Sam Brannen
8e2b14a2b6
Fix Javadoc links to Quartz
...
See https://github.com/quartz-scheduler/quartz-scheduler.org-site/issues/42
2019-03-03 17:04:34 +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
6853d50ddb
Polishing
2019-03-03 16:29:49 +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
abda6a6c66
Polishing
2019-03-02 16:17:58 +01:00
Sam Brannen
d4f544d42f
Add missing precondition check to AutowireUtils.resolveDependency
...
See gh-2060
2019-03-02 14:39:43 +01:00
Sam Brannen
02be21d0dc
Polishing
2019-03-02 14:22:28 +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
74e9825a65
Fix CheckStyle violation
2019-03-01 20:18:04 +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
Juergen Hoeller
a7db395d9b
Merge branch '5.1.x'
2019-02-28 19:29:04 +01:00
Juergen Hoeller
5d8a34fee6
Only prefer JDK 9+ Lookup.defineClass API if ClassLoader matches
...
Closes gh-22416
2019-02-28 19:28:03 +01:00
Juergen Hoeller
7a7c7f51e3
Polishing
2019-02-28 15:37:47 +01:00
Juergen Hoeller
c41616e82d
Merge branch '5.1.x'
2019-02-28 11:14:49 +01:00
Juergen Hoeller
9c42fd7f17
JdbcTemplate preserves order of stored procedure output parameters
...
Closes gh-22491
2019-02-28 11:13:51 +01:00
Juergen Hoeller
fc7948c96b
Merge branch '5.1.x'
2019-02-27 17:34:46 +01:00
Juergen Hoeller
e583da0725
Polishing
2019-02-27 17:26:53 +01:00
Juergen Hoeller
0288878bcc
Consistent handling of early FactoryBean instantiation failures
...
Closes gh-22409
2019-02-27 17:26:35 +01:00
pelladigabor
a07245caf8
Exclude jdk package in ShadowingClassLoader
...
Many Java 11 internal classes are located in the jdk package. ShadowingClassLoader should not load them, because it can cause errors, e.g. java.lang.IllegalAccessError: class jdk.internal.reflect.ConstructorAccessorImpl loaded by org.springframework.instrument.classloading.ShadowingClassLoader @2bea5ab4 cannot access jdk/internal/reflect superclass jdk.internal.reflect.MagicAccessorImpl
2019-02-27 16:57:08 +01:00
Sam Brannen
f2a5415111
Fix CheckStyle violations
...
See gh-2060
2019-02-27 16:41:00 +01:00
Sam Brannen
40da78e9df
Polishing
2019-02-27 16:30:05 +01:00
Sam Brannen
6f6be27aae
Polish AutowireUtils[Tests]
...
See gh-2060
2019-02-27 16:25:34 +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
3a42f1154d
Polishing
2019-02-27 14:03:11 +01:00
Stephane Nicoll
846ec31dfe
Merge branch '5.1.x'
2019-02-27 13:57:40 +01:00
Stephane Nicoll
46a39dbf99
Merge pull request #22482 from izeye
...
* pr/22482:
Polish
2019-02-27 13:57:24 +01:00
Johnny Lim
046531fc75
Polish
...
Closes gh-22482
2019-02-27 13:57:09 +01:00
Juergen Hoeller
3a641d9297
Merge branch '5.1.x'
2019-02-26 17:50:35 +01:00
Juergen Hoeller
79f91b4867
Upgrade to Hibernate ORM 5.3.9 and EclipseLink 2.7.4
2019-02-26 17:42:55 +01:00
Juergen Hoeller
490b23518b
Polishing
2019-02-26 17:42:49 +01:00