Stéphane Nicoll
9e656c1554
Remove unnecessary field initialization
...
Closes gh-45168
Co-authored-by: CatiaCorreia catia.correia97@gmail.com
1 month ago
Phillip Webb
d66b28fcba
Update end copyright year to 'present'
...
See gh-46065
6 months ago
Andy Wilkinson
bb3651b7d1
Reduce warnings reported by Eclipse
...
Closes gh-43269
1 year ago
Phillip Webb
3481107ff7
Update copyright year of changed files
1 year ago
Moritz Halbritter
a3060652f8
Call String.toLowerCase and .toUppercase with explicit locale
...
Closes gh-42719
1 year ago
Johnny Lim
a0d1c10d8a
Polish
...
See gh-42340
1 year ago
Phillip Webb
aeafa20727
Prevent 'Recursive update' exceptions with Restarter
...
Update `Restarter` to prevent 'Recursive update' `IllegalStateException`
from being thrown. Calls to `objectFactory.getObject()` now happen
outside of `computeIfAbsent`.
Fixes gh-41571
1 year ago
Stéphane Nicoll
156237227c
Migrate MockMvc tests to MockMvcTester
...
See gh-41198
1 year ago
Phillip Webb
0c1c7e844c
Don't detect main method from launcher classes
...
Update `MainMethod` discovery so that launcher classes from the
`org.springframework.boot.loader` code are not considered. This restores
the behavior of Spring Boot 2.7.11 and allows remote restart of uber
jars without pulling the loader classes into the `RestartClassLoader`.
Fixes gh-39733
2 years ago
Ahmed Ashour
207327d97c
Use method references when possible in test code
...
See gh-40974
2 years ago
Stéphane Nicoll
49c97bf6ca
Avoid use of bean overriding in tests
...
See gh-40111
2 years ago
Andy Wilkinson
45c32854a5
Fix Checkstyle upgrade
...
Closes gh-38746
2 years ago
Moritz Halbritter
d095a5e47d
Polish RestartApplicationListenerTests
2 years ago
Moritz Halbritter
9152217c96
Fix JUnit's @Nested usage
2 years ago
Phillip Webb
d47f8bf945
Update copyright year of changed files
2 years ago
Andy Wilkinson
1f0e311cb8
Completely disable restart when running tests
...
Fixes gh-37373
2 years ago
Johnny Lim
c9932bb73a
Use AssertJ's fail, not JUnit's
...
This commit also updates Checkstyle to prevent use of JUnit's
assertions from being reintroduced.
See gh-37655
2 years ago
Moritz Halbritter
032d92a9fb
Cleanup remote debug tunnel leftovers from devtools
...
Closes gh-36808
2 years ago
Moritz Halbritter
7bb337aeb1
Polish tests
2 years ago
Stefano Cordio
d802ca017b
Small assertions improvements
...
See gh-34796
3 years ago
Marc Leroux
b61834c92d
Replace Mockito argument captors with assertArg
...
See gh-35015
3 years ago
Phillip Webb
6b646f6a8e
Update copyright year of changed files
3 years ago
Phillip Webb
4e6148f47b
Search for main methods from the bottom of the stack
...
Update `MainMethod` to search from the bottom of the stack rather than
the start. Prior to this commit, an incorrect `main` method would be
found if more than one `main` was in the stack.
Fixes gh-35214
3 years ago
Andy Wilkinson
6b9bc012a5
Check that BPP and BFPP bean methods won't cause eager initialization
...
Closes gh-35164
3 years ago
Andy Wilkinson
899ae9c37c
Upgrade to Mockito 5.3.0
...
Closes gh-34998
3 years ago
Phillip Webb
df5898a146
Reformat code following spring-javaformat upgrade
3 years ago
Phillip Webb
a2ac38e203
Update copyright year of changed files
3 years ago
Krzysztof Krason
cf6493f65c
Simplify AssertJ assertions and also make them more readable
...
See gh-33653
3 years ago
Phillip Webb
f588793445
Update copyright year of changed files
3 years ago
Moritz Halbritter
f36e2ecb7b
Use AutoClosables with try-with-resources
...
Closes gh-33538
3 years ago
Moritz Halbritter
725337f976
Make fields final
...
Closes gh-33537
3 years ago
Madhura Bhave
ce3c933f77
Adapt to Spring Security changes
...
Closes gh-32604
3 years ago
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
3 years ago
Phillip Webb
f8412847dc
Update copyright year for "Fix typos in code and documentation"
...
See gh-31734
3 years ago
Marc Wrobel
dbfc6bded4
Fix typos in code and documentation
...
See gh-31734
3 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