Phillip Webb
41e0bbf4bb
Add SpringBootTest.useMainMethod support
...
Add a new `useMainMethod` attribute to `SpringBootTest` which can be
used to determine how the test should run. The three available options
are:
- `ALWAYS`
- `NEVER`
- `WHEN_AVAILABLE`
The default is `WHEN_AVAILABLE` which will attempt to launch the test
using the `main` method if there is one.
The `SpringBootContextLoader` has been updated to use the new
`SpringApplicationHook` interface when the main method is being used.
Closes gh-22405
2022-09-14 22:37:37 -07:00
Phillip Webb
fadbb4b763
Polish SpringBootContextLoader
2022-09-14 22:34:53 -07:00
Phillip Webb
d3957dfa3e
Provide a public API for SpringApplication hooks
...
Create a new public SpringApplication Hook API based on the existing
`SpringApplicationRunListener` interface.
The previous package-private `SpringApplicationHooks` class has been
replaced with a public `SpringApplicationHook` interface which acts as
a factory that can create additional `SpringApplicationRunListener`
instances to hook in.
The boolean result from the previous `preRefresh` method has been
replaced with an `AbandonedRunException` which can be thrown from
the `SpringApplicationRunListener`.
Closes gh-32301
2022-09-14 22:34:50 -07:00
Phillip Webb
88913b11ce
Allow additional listeners registration in early events
...
Update `EventPublishingRunListener` so that event listeners may add
additional listeners to the `SpringApplication` during early events.
Prior to this commit, the listeners were collected only once which
meant that if a listener for an `ApplicationStartingEvent` called
`application.addListener(...)`, it would be ignored.
Closes gh-32300
2022-09-14 22:34:39 -07:00
Phillip Webb
6955ed9dcf
Make EventPublishingRunListener package private
...
Closes gh-32299
2022-09-14 13:50:27 -07:00
Phillip Webb
20b91c5ae2
Include 'classesDirectory' in ProcessTestAotMojo classpath
...
Update `ProcessTestAotMojo` so that the classesDirectory and
the testClassesDirectory are on the classpath when compiling
code.
See gh-32191
2022-09-14 13:50:27 -07:00
Phillip Webb
db89ee6904
Deprecate spring.mvc.ignore-default-model-on-redirect property
...
Closes gh-32381
2022-09-14 13:49:03 -07:00
Stephane Nicoll
1fa6985311
Upgrade to REST Assured 5.2.0
...
Closes gh-32371
2022-09-14 15:57:03 +02:00
Stephane Nicoll
447804fdc4
Upgrade to Rabbit Stream Client 0.7.0
...
Closes gh-32370
2022-09-14 15:57:02 +02:00
Stephane Nicoll
6e59f3fe18
Upgrade to Rabbit AMQP Client 5.16.0
...
Closes gh-32369
2022-09-14 15:57:02 +02:00
Stephane Nicoll
52e0293bd0
Upgrade to Postgresql 42.5.0
...
Closes gh-32368
2022-09-14 15:57:02 +02:00
Stephane Nicoll
6a4fef33bb
Upgrade to Oracle Database 21.7.0.0
...
Closes gh-32367
2022-09-14 15:57:02 +02:00
Stephane Nicoll
777fbce1fa
Upgrade to OpenTelemetry 1.18.0
...
Closes gh-32366
2022-09-14 15:57:02 +02:00
Stephane Nicoll
297e9019ac
Upgrade to Netty 4.1.82.Final
...
Closes gh-32365
2022-09-14 15:57:01 +02:00
Stephane Nicoll
aa47a9bd83
Upgrade to MySQL 8.0.30
...
Closes gh-32364
2022-09-14 15:57:01 +02:00
Stephane Nicoll
3fa038a393
Upgrade to MSSQL JDBC 11.2.1.jre17
...
Closes gh-32363
2022-09-14 15:57:01 +02:00
Stephane Nicoll
bcf452918b
Upgrade to MongoDB 4.7.1
...
Closes gh-32362
2022-09-14 15:57:01 +02:00
Stephane Nicoll
81a75f9e5d
Upgrade to Mockito 4.8.0
...
Closes gh-32361
2022-09-14 15:57:00 +02:00
Stephane Nicoll
27d03aac3c
Upgrade to Maven Resources Plugin 3.3.0
...
Closes gh-32360
2022-09-14 15:57:00 +02:00
Stephane Nicoll
f624026d4e
Upgrade to Maven Javadoc Plugin 3.4.1
...
Closes gh-32359
2022-09-14 15:57:00 +02:00
Stephane Nicoll
57e4b4447c
Upgrade to Maven Install Plugin 3.0.1
...
Closes gh-32358
2022-09-14 15:57:00 +02:00
Stephane Nicoll
a1f4f519fc
Upgrade to Maven Help Plugin 3.3.0
...
Closes gh-32357
2022-09-14 15:56:59 +02:00
Stephane Nicoll
1b06966130
Upgrade to Maven Assembly Plugin 3.4.2
...
Closes gh-32356
2022-09-14 15:56:59 +02:00
Stephane Nicoll
0cedc5dbba
Upgrade to MariaDB 3.0.7
...
Closes gh-32355
2022-09-14 15:56:59 +02:00
Stephane Nicoll
bcb5f048d2
Upgrade to Liquibase 4.16.0
...
Closes gh-32354
2022-09-14 15:56:59 +02:00
Stephane Nicoll
4c7d6799f8
Upgrade to Kafka 3.2.2
...
Closes gh-32352
2022-09-14 15:18:40 +02:00
Stephane Nicoll
4f6c3ab2b0
Upgrade to JUnit Jupiter 5.9.0
...
Closes gh-32351
2022-09-14 15:18:40 +02:00
Stephane Nicoll
b4a33e52c1
Upgrade to jOOQ 3.17.4
...
Closes gh-32350
2022-09-14 14:16:54 +02:00
Stephane Nicoll
b6b743006e
Upgrade to Jersey 3.0.8
...
Closes gh-32349
2022-09-14 14:16:51 +02:00
Stephane Nicoll
b70ebe04ff
Upgrade to Janino 3.1.8
...
Closes gh-32348
2022-09-14 14:16:48 +02:00
Stephane Nicoll
36e3588416
Upgrade to Jackson Bom 2.13.4
...
Closes gh-32347
2022-09-14 14:16:45 +02:00
Stephane Nicoll
1849cddcd3
Upgrade to HtmlUnit 2.64.0
...
Closes gh-32346
2022-09-14 14:16:43 +02:00
Stephane Nicoll
1e3bcc5afd
Upgrade to HSQLDB 2.7.0
...
Closes gh-32345
2022-09-14 14:16:40 +02:00
Stephane Nicoll
5b8aa1e8e3
Upgrade to Hibernate Validator 7.0.5.Final
...
Closes gh-32344
2022-09-14 14:16:37 +02:00
Stephane Nicoll
e3ea832bd8
Upgrade to Hibernate 6.1.3.Final
...
Closes gh-32343
2022-09-14 14:16:35 +02:00
Stephane Nicoll
52ee9932e0
Upgrade to Hazelcast 5.1.3
...
Closes gh-32342
2022-09-14 14:16:32 +02:00
Stephane Nicoll
52bd273dd0
Upgrade to Gson 2.9.1
...
Closes gh-32341
2022-09-14 14:16:30 +02:00
Stephane Nicoll
a16da73843
Upgrade to Groovy 4.0.5
...
Closes gh-32340
2022-09-14 14:16:26 +02:00
Stephane Nicoll
29c9837131
Upgrade to Flyway 9.3.0
...
Closes gh-32339
2022-09-14 14:16:24 +02:00
Stephane Nicoll
947a751d5a
Upgrade to Elasticsearch Client 8.3.3
...
Closes gh-32338
2022-09-14 14:16:21 +02:00
Stephane Nicoll
464237fc21
Upgrade to Ehcache3 3.10.1
...
Closes gh-32337
2022-09-14 14:16:18 +02:00
Stephane Nicoll
e3972b66af
Upgrade to Dropwizard Metrics 4.2.12
...
Closes gh-32336
2022-09-14 14:16:15 +02:00
Stephane Nicoll
ebf51813aa
Upgrade to Couchbase Client 3.3.4
...
Closes gh-32335
2022-09-14 14:16:13 +02:00
Stephane Nicoll
ce018d5b6e
Upgrade to Byte Buddy 1.12.16
...
Closes gh-32334
2022-09-14 14:16:10 +02:00
Stephane Nicoll
024ee55f6d
Upgrade to Artemis 2.25.0
...
Closes gh-32333
2022-09-14 14:16:07 +02:00
Stephane Nicoll
bafee1bb7c
Upgrade to Micrometer 1.10.0-M6
...
Closes gh-32238
2022-09-14 13:59:25 +02:00
Stephane Nicoll
6fb70d143d
Map R2DBC Pool 'minIdle' property
...
Closes gh-32332
2022-09-14 13:56:44 +02:00
Andy Wilkinson
6d2a1d3f3b
Adapt to breaking changes in Batch's transaction management
...
See gh-32237
2022-09-14 10:15:30 +01:00
Andy Wilkinson
c6990a34f9
Merge branch '2.7.x'
2022-09-14 09:20:37 +01:00
Andy Wilkinson
a533f4fa32
Polish
2022-09-14 09:20:13 +01:00