Juergen Hoeller
718d46adac
Check for alias overriding bean definition of same name
...
Closes gh-25430
2020-07-22 18:42:53 +02:00
XenoAmess
c547809e89
Use instanceof instead of Class#isInstance where feasible
...
Closes gh-25446
2020-07-22 14:06:29 +02:00
XenoAmess
cd12583e13
Use Integer.parseInt instead of Integer.valueOf for primitive int
...
Closes gh-25456
2020-07-22 10:54:32 +02:00
XenoAmess
c7f44ff671
Fix links in Javadoc
...
Closes gh-25448
2020-07-22 10:24:55 +02:00
Juergen Hoeller
198d64d539
Merge branch '5.2.x'
...
# Conflicts:
# build.gradle
2020-07-17 17:52:08 +02:00
Juergen Hoeller
e9898f7d52
Polishing
2020-07-17 17:48:33 +02:00
Sam Brannen
abe16eeb6e
Use test name as thread name prefix in scheduling TaskExecutor tests
...
This commit also deletes a duplicate copy of the assertThreadNamePrefix()
method.
2020-07-11 17:01:54 +02:00
Sam Brannen
ab0e651547
Polish SerializationTestUtils, clean up warnings, etc.
2020-06-20 18:17:03 +02:00
Sam Brannen
edf25ce98a
Polish ResourceBundleMessageSourceTests
...
- suppress warnings
- make tests faster (by sleeping less)
2020-06-18 11:49:44 +02:00
Sam Brannen
8099fc8178
Use try-with-resources language construct where feasible
...
Closes gh-2063
Co-authored-by: igor-suhorukov <igor.suhorukov@gmail.com >
2020-06-16 22:57:45 +02:00
Juergen Hoeller
7207f7645c
Deprecate InstantiationAwareBeanPostProcessorAdapter
...
Consistently relying on default methods in the corresponding interfaces.
Closes gh-25165
2020-05-29 23:07:10 +02:00
Sam Brannen
763f7b9be8
Make TaskExecutor and TaskScheduler tests more robust
2020-05-27 15:25:39 +02:00
Sam Brannen
c4ef002392
Stop to writing to STD_OUT in tests
2020-05-27 15:21:17 +02:00
Juergen Hoeller
399453d9f1
Merge branch '5.2.x'
...
# Conflicts:
# spring-jdbc/src/test/java/org/springframework/jdbc/core/JdbcTemplateQueryTests.java
# spring-jdbc/src/test/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcTemplateTests.java
2020-05-22 17:16:09 +02:00
Juergen Hoeller
d7161f5e5e
Polishing
2020-05-22 16:23:46 +02:00
Rossen Stoyanchev
6403a9f10e
Defer decision on BindingResult type until access
...
Closes gh-24347
2020-05-14 15:42:43 +01:00
liym
d54b903d28
Fix typo in RmiSupportTests
...
Closes gh-25051
2020-05-12 14:19:16 +02:00
Sam Brannen
b313b3395f
Fix AutoProxyLazyInitTests
...
See gh-24915
2020-05-12 12:37:10 +02:00
Sam Brannen
3c3e8e6a8b
Only proxy supported beans in BeanNameAutoProxyCreator
...
Prior to this commit, if a BeanNameAutoProxyCreator was configured with
a custom TargetSourceCreator, the TargetSourceCreator was applied to
all beans in the ApplicationContext. Thus, the list of supported
beanNames was effectively ignored when applying any
TargetSourceCreator. Consequently, if a TargetSourceCreator returned a
non-null TargetSource for a given bean, the BeanNameAutoProxyCreator
proxied the bean even if the bean name had not been configured in the
beanNames list.
This commit addresses this issue by ensuring that a custom
TargetSourceCreator is only applied to beans whose names match the
configured beanNames list in a BeanNameAutoProxyCreator.
Closes gh-24915
2020-05-12 11:59:51 +02:00
Sam Brannen
a07dc80d72
Polishing
2020-05-12 11:15:14 +02:00
Sam Brannen
12e05280ad
Upgrade to AssertJ 3.16
2020-05-06 15:22:23 +02:00
Sam Brannen
c3f439417e
Disable remaining JavaScript-based tests on Java 15+
...
This commit disables all remaining JavaScript-based tests on Java 15 or
higher since the Nashorn JavaScript engine is no longer part of the JDK.
2020-04-28 17:22:22 +02:00
Sam Brannen
71ed8143a1
Disable StandardScriptFactoryTests on Java 15+
...
This commit disables StandardScriptFactoryTests on Java 15 or higher
since the Nashorn JavaScript engine is no longer part of the JDK.
2020-04-28 16:56:15 +02:00
Juergen Hoeller
73fadd8b7c
Polishing
2020-04-27 11:45:41 +02:00
Juergen Hoeller
127e879726
Store source in index-derived ScannedGenericBeanDefinition as well
...
Includes consistent constructor-level storage of derived resource in ScannedGenericBeanDefinition and ConfigurationClassBeanDefinition.
Closes gh-24978
2020-04-27 11:45:08 +02:00
陈其苗
13970ae528
Use autoboxing instead of explicit wrapping in tests
...
Closes gh-24801
2020-04-01 14:34:20 +02:00
Sam Brannen
01cf0a3d4e
Polish MBeanClientInterceptorTests and recover two lost tests
...
Two test methods were missing the @Test annotation after the migration
from JUnit 3 to JUnit 4.
2020-03-31 19:02:15 +02:00
Sam Brannen
9bd74c270f
Remove flaky check in MBeanClientInterceptorTests
...
Prior to this commit, the testTestLazyConnectionToRemote() method in
MBeanClientInterceptorTests expected an exception to be thrown while
attempting to access the state of a proxied MBean after the MBeanServer
had been shutdown; however, the test occasionally failed if the server
had not been properly shutdown.
Since an attempt to wait on the server to shutdown proved not to be
consistently helpful in this scenario, we are entirely removing this
check from the test.
2020-03-31 18:55:54 +02:00
Qimiao Chen
7c831d2ef4
Replace anonymous inner classes with lambdas in tests
...
Closes gh-24808
2020-03-30 12:02:23 +02:00
Sam Brannen
06fa8692cd
Attempt to make MBeanClientInterceptorTests more robust
2020-03-27 11:18:45 +01:00
Qimiao Chen
09b36380cd
Fix typos in source files
...
Closes gh-24746
2020-03-20 20:06:52 +01:00
Juergen Hoeller
bcee6b9da4
Consistent assertions for supplier-based bean definition tests
2020-03-11 14:55:39 +01:00
Juergen Hoeller
bee63e38c1
Create ScannedGenericBeanDefinitions for index-derived components as well
...
Closes gh-24638
2020-03-11 14:54:16 +01:00
ZhangT
6add7b4dec
Polishing
...
Closes gh-24543
2020-02-17 17:33:39 +01:00
Juergen Hoeller
a4179b4795
Polishing
2020-02-12 18:32:32 +01:00
Sam Brannen
9dbd411f81
Suppress warnings in Gradle build
2020-02-12 11:04:07 +01:00
Sam Brannen
974cacac31
Support nested annotations in ASM-based processing again
...
Spring Framework 5.0 introduced a regression in ASM-based annotation
processing. Specifically, nested annotations were no longer supported,
and component scanning resulted in an exception if a candidate
component was annotated with an annotation that contained nested
annotations.
This commit fixes this regression by introducing special handling in
AnnotationTypeMapping that supports extracting values from objects of
type TypeMappedAnnotation when necessary.
Closes gh-24375
2020-02-12 10:36:54 +01:00
Juergen Hoeller
82adb09490
ImportSelector.getExclusionFilter() naming and javadoc clarification
...
See gh-24175
2020-02-05 18:20:27 +01:00
Juergen Hoeller
d93303c008
ImportSelector.getCandidateFilter() for transitive filtering of classes
...
Closes gh-24175
2020-02-05 12:35:16 +01:00
Sam Brannen
984f9de191
Fix Checkstyle violation
...
See gh-24375
2020-01-16 18:14:14 +01:00
Sam Brannen
2a2efbe611
Introduce @Disabled regression test for gh-24375
2020-01-16 17:16:57 +01:00
Sébastien Deleuze
3f1882c4eb
Support noarg callable references in Kotlin beans DSL
...
Closes gh-23395
2020-01-13 10:53:23 +01:00
Stephane Nicoll
bdb9f9570e
Polish
2020-01-09 17:08:48 +01:00
Juergen Hoeller
b0e4b7e29c
Re-calculate SimpleKey's hashCode field on deserialization
...
Closes gh-24320
2020-01-09 15:39:04 +01:00
Sam Brannen
8a371c7669
Use Gradle test fixture support for spring-aop
...
See gh-23550
2020-01-02 16:01:35 +01:00
Sam Brannen
57b771ba92
Move common FactoryMethods to spring-beans test fixtures
...
See gh-23550
2020-01-02 16:01:35 +01:00
Sam Brannen
726b1bb1d0
Rename test fixture package in spring-context
...
See gh-23550
2020-01-02 16:01:35 +01:00
Sam Brannen
7cd4ddf5fc
Rename test fixture package in spring-beans
...
See gh-23550
2020-01-02 16:01:35 +01:00
Sam Brannen
4260c34b47
Rename test fixture package in spring-core
...
See gh-23550
2020-01-02 16:01:34 +01:00
Sam Brannen
61d4ee594d
Use Gradle test fixture support for spring-beans and spring-context
...
See gh-23550
2020-01-02 16:01:34 +01:00