mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Merge branch '5.3.x'
# Conflicts: # spring-context/src/main/java/org/springframework/scheduling/annotation/Async.java # spring-context/src/testFixtures/java/org/springframework/context/testfixture/jndi/SimpleNamingContextBuilder.java # spring-core/src/main/java/org/springframework/core/BridgeMethodResolver.java # spring-core/src/main/java/org/springframework/util/MimeType.java
This commit is contained in:
+1
-1
@@ -417,7 +417,7 @@ class AnnotationUtilsTests {
|
||||
// inherited class-level annotation; note: @Transactional is inherited
|
||||
assertThat(isAnnotationInherited(Transactional.class, InheritedAnnotationInterface.class)).isFalse();
|
||||
// isAnnotationInherited() does not currently traverse interface hierarchies.
|
||||
// Thus the following, though perhaps counter intuitive, must be false:
|
||||
// Thus the following, though perhaps counterintuitive, must be false:
|
||||
assertThat(isAnnotationInherited(Transactional.class, SubInheritedAnnotationInterface.class)).isFalse();
|
||||
assertThat(isAnnotationInherited(Transactional.class, InheritedAnnotationClass.class)).isFalse();
|
||||
assertThat(isAnnotationInherited(Transactional.class, SubInheritedAnnotationClass.class)).isTrue();
|
||||
|
||||
+1
-1
@@ -1275,7 +1275,7 @@ class MergedAnnotationsTests {
|
||||
SearchStrategy.INHERITED_ANNOTATIONS).get(
|
||||
Transactional.class).getAggregateIndex()).isEqualTo(0);
|
||||
// Since we're not traversing interface hierarchies the following,
|
||||
// though perhaps counter intuitive, must be false:
|
||||
// though perhaps counterintuitive, must be false:
|
||||
assertThat(MergedAnnotations.from(SubInheritedAnnotationInterface.class,
|
||||
SearchStrategy.INHERITED_ANNOTATIONS).get(
|
||||
Transactional.class).getAggregateIndex()).isEqualTo(-1);
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
* Unit tests for {@link DefaultConversionService}.
|
||||
*
|
||||
* <p>In this package for enforcing accessibility checks to non-public classes outside
|
||||
* of the {@code org.springframework.core.convert.support} implementation package.
|
||||
* the {@code org.springframework.core.convert.support} implementation package.
|
||||
* Only in such a scenario, {@code setAccessible(true)} is actually necessary.
|
||||
*
|
||||
* @author Keith Donald
|
||||
|
||||
@@ -645,7 +645,7 @@ class AssertTests {
|
||||
void isAssignableWithNullSupertype() {
|
||||
assertThatIllegalArgumentException().isThrownBy(() ->
|
||||
Assert.isAssignable(null, Integer.class, "enigma"))
|
||||
.withMessageContaining("Super type to check against must not be null");
|
||||
.withMessageContaining("Supertype to check against must not be null");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -692,7 +692,7 @@ class AssertTests {
|
||||
void isAssignableWithNullSupertypeAndMessageSupplier() {
|
||||
assertThatIllegalArgumentException().isThrownBy(() ->
|
||||
Assert.isAssignable(null, Integer.class, () -> "enigma"))
|
||||
.withMessageContaining("Super type to check against must not be null");
|
||||
.withMessageContaining("Supertype to check against must not be null");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user