Phillip Webb
e0b67889a8
Use Stream.toList instead of Stream.collect when possible
...
Update code to make use of `Stream.toList()` whenever possible.
Closes gh-28177
3 years ago
Andy Wilkinson
03b3a772c9
Adapt to PathMatchingResourcePatternResolver's behavior being reverted
...
See spring-projects/spring-framework#29163
3 years ago
Andy Wilkinson
7eb8abbda8
Adapt to PathMatchingResourcePatternResolver now matching root dir
...
See spring-projects/spring-framework#29163
3 years ago
Vedran Pavic
230f2cda84
Migrate to AuthorizationFilter in Spring Security auto-config
...
This commit updates Servlet based Spring Security auto-configuration
to use AuthorizationFilter, which is intended to supersede
FilterSecurityInterceptor.
See gh-31255
3 years ago
Stephane Nicoll
aac3ccf59c
Adapt to deprecations in Spring Framework
...
See https://github.com/spring-projects/spring-framework/issues/27780
4 years ago
Phillip Webb
f8412847dc
Update copyright year for "Fix typos in code and documentation"
...
See gh-31734
4 years ago
Marc Wrobel
dbfc6bded4
Fix typos in code and documentation
...
See gh-31734
4 years ago
dreis2211
5db04da275
Use pattern matching for instanceof where appropriate
...
See gh-31475
4 years ago
Andy Wilkinson
ee45fd2fc8
Remove redundant throws declarations from internal APIs
...
Closes gh-31176
4 years ago
Phillip Webb
350d27fe50
Polish code to use method references when possible
4 years ago
Andy Wilkinson
798d61fcf0
Polish "Make event handling in ClassPathFileSystemWatcherTests thread-safe"
...
See gh-30844
4 years ago
dugenkui03
aeaad006cd
Make event handling in ClassPathFileSystemWatcherTests thread-safe
...
See gh-30844
4 years ago
Andy Wilkinson
cced7edd9c
Document Devtools' property defaults directly in reference docs
...
Closes gh-29406
4 years ago
Andy Wilkinson
34e436ef6e
Accommodate SocketException when reading from stopped TunnelClient
...
TunnelClientTests stopTriggersTunnelClose expects that stopping the
client will cause an attempt to read from a connected channel to
return -1. With Java 17 on Windows the connection has been reset and
a SocketException is thrown instead. This seems reasonable as
stopping the client closes the ServerSocketChannel to which the test
was connected.
This commit updates test to expect a SocketException or a return
value of -1.
Closes gh-30042
4 years ago
Phillip Webb
9f00c3acf5
Polish
4 years ago
Scott Frederick
42328771ad
Suppress deprecation warnings for WebSecurityConfigurerAdapter
...
Fixes gh-29897
4 years ago
Phillip Webb
ff4b92a3ba
Update copyright year of changed files
4 years ago
Phillip Webb
a282f912e6
Organize imports
...
Organize imports according to updated checkstyle rules.
4 years ago
Stephane Nicoll
7f17f819a6
Polish "Enforce use of BDDMockito"
...
See gh-29178
4 years ago
Yanming Zhou
b49418aaaf
Enforce use of BDDMockito
...
1. Replace Mockito.verify*() with BDDMockito.then()
2. Replace Mockito.doReturn() with BDDMockito.willReturn()
3. Adjust checkstyle rule
See gh-29178
4 years ago
Stephane Nicoll
0d78ff0657
Polish "Use a timeout when joining threads in HttpTunnelServerTests"
...
See gh-29522
4 years ago
Leo Li
940d969c7c
Use a timeout when joining threads in HttpTunnelServerTests
...
See gh-29522
4 years ago
Andy Wilkinson
fe7b13ec46
Upgrade to Spring Framework 6 and Jakarta EE 9
...
Closes gh-28619
Closes gh-28620
Closes gh-28621
Closes gh-28622
Closes gh-28623
Closes gh-28624
Closes gh-28625
Closes gh-28626
Closes gh-28627
Closes gh-28628
Closes gh-28629
Closes gh-28630
Closes gh-28631
Closes gh-28632
Closes gh-28633
Closes gh-28634
Closes gh-28635
Closes gh-28636
Closes gh-28638
Closes gh-28639
Closes gh-28640
Closes gh-28644
Closes gh-28645
Closes gh-28650
Closes gh-28711
Closes gh-28866
Closes gh-28867
Closes gh-28868
Closes gh-28872
See gh-28641
See gh-28642
See gh-28643
See gh-28646
See gh-28647
See gh-28648
See gh-28649
See gh-28721
See gh-28869
See gh-28871
4 years ago
Scott Frederick
12244a8edd
Remove use of Thymeleaf from smoke tests
...
Closes gh-28788
4 years ago
Leo Li
73e9c355f1
Polish
...
See gh-28501
4 years ago
Andy Wilkinson
7607587b6c
Stabilize liveReloadOnClassPathChanged()
...
Closes gh-28441
4 years ago
Phillip Webb
b93a629dbe
Shutdown in-memory R2DBC databases before devtools restart
...
Add `DevToolsR2dbcAutoConfiguration` to automatically shutdown in-memory
R2DBC databases before restarting. Prior to this commit, restarts that
involved SQL initialization scripts could fail due to dirty database
content.
The `DevToolsR2dbcAutoConfiguration` class is similar in design to
`DevToolsDataSourceAutoConfiguration`, but it applies to both pooled
and non-pooled connection factories. The `DataSource` variant does not
need to deal with non-pooled connections due to the fact that
`EmbeddedDataSourceConfiguration` calls `EmbeddedDatabase.shutdown`
as a `destroyMethod`. With R2DB we don't have an `EmbeddedDatabase`
equivalent so we can always trigger a shutdown for devtools.
Fixes gh-28345
4 years ago
Phillip Webb
55a1ec72cc
Update copyright year of changed files
4 years ago
Stephane Nicoll
c62a6819fe
Polish "Add startup time metrics"
...
See gh-27878
4 years ago
bono007
2e67963bfe
Add startup time metrics
...
See gh-27878
4 years ago
Andy Wilkinson
ade922baec
Stabilize LiveReloadServerTests
...
Closes gh-27503
5 years ago
Andy Wilkinson
cff1827e27
Stabilize socketChannelClosedTriggersTunnelClose
...
Closes gh-27483
5 years ago
Andy Wilkinson
8e7a6ceb44
Polish "Make dev tools' home directory configurable"
...
See gh-17924
5 years ago
sfeldstein
b9dbfad473
Make dev tools' home directory configurable
...
This allows separate projects to keep their own settings where common
settings such as spring.* or server.* don't conflict.
See gh-17924
5 years ago
Stephane Nicoll
dc5acb0019
Remove deprecated code flagged for removal
...
Closes gh-27303
5 years ago
Phillip Webb
a76e5c043e
Update copyright year of changed files
5 years ago
Phillip Webb
5ca687c9a6
Polish 'Make livereload websocket headers case insensitive'
...
See gh-26813
Closes gh-26813
5 years ago
Andy Wilkinson
7ba575d392
Prevent RestarterTests.testRestart from triggering unwanted restarts
...
See gh-26900
5 years ago
Andy Wilkinson
32effdba0a
Try to stabilize RestarterTests.testRestart
...
Closes gh-26900
5 years ago
Andy Wilkinson
c89430e174
Try to stabilize httpConnectionsAreClosedAfterLongPollTimeout
...
Closes gh-26888
5 years ago
Andy Wilkinson
7a14a53250
Try to stabilize TunnelClientTests.addListener()
...
Closes gh-26885
5 years ago
Andy Wilkinson
608c4509f8
Try to stabilise SocketTargetServerConnectionTests
...
Closes gh-26857
5 years ago
Andy Wilkinson
186658cc12
Attempt to stabilize stopTriggersTunnelClose
...
Closes gh-26856
5 years ago
Stephane Nicoll
d3c817b7ba
Polish "Remove unnecessary throws declaration in tests"
...
See gh-26441
5 years ago
weixsun
8a2be288a3
Remove unnecessary throws declaration in tests
...
See gh-26441
5 years ago
Andy Wilkinson
6440843358
Do not wait indefinitely in initialize test if refresh fails
...
Closes gh-26286
5 years ago
Andy Wilkinson
06168bb130
Polish FileSystemWatcherTests
...
See gh-25982
5 years ago
Andy Wilkinson
02e6b7c89c
Make FileSystemWatcherTests more robust
...
Previously, several tests in FileSystemWatcherTests assumed that all
of the changes detected by the watcher would be grouped into a single
change set. This assumption breaks down when a test runs slowly (due
to CPU or IO contention, for example), and making changes to the file
system takes long then the watcher's polling interval. When this
happens, the changes will be split across two (or more).
This commit attempts to make the tests more robust. The tests now
tolerate multiple changes sets by combining them and asserting that
across the n change sets, only the expected changes were detected.
Closes gh-25901
5 years ago
Andy Wilkinson
896f20e1d3
Improve diagnostics of ClassPathFileSystemWatcherTests
...
Closes gh-25821
5 years ago
Andy Wilkinson
24d729ee3b
Close ClassLoader so jar it references can be deleted on Windows
...
Polishes 952ac7b8
5 years ago