Browse Source

Fix typos in tests

Closes gh-24566
pull/24572/head
Qimiao Chen 5 years ago committed by GitHub
parent
commit
f78c21e40b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      spring-core/src/test/java/org/springframework/core/annotation/AnnotationsScannerTests.java
  2. 8
      spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsTests.java

10
spring-core/src/test/java/org/springframework/core/annotation/AnnotationsScannerTests.java

@ -45,7 +45,7 @@ import static org.assertj.core.api.Assertions.assertThat; @@ -45,7 +45,7 @@ import static org.assertj.core.api.Assertions.assertThat;
class AnnotationsScannerTests {
@Test
void directStrategyOnClassWhenNotAnnoatedScansNone() {
void directStrategyOnClassWhenNotAnnotatedScansNone() {
Class<?> source = WithNoAnnotations.class;
assertThat(scan(source, SearchStrategy.DIRECT)).isEmpty();
}
@ -423,7 +423,7 @@ class AnnotationsScannerTests { @@ -423,7 +423,7 @@ class AnnotationsScannerTests {
@Test
void typeHierarchyStrategyOnMethodWithIgnorablesScansAnnotations()
throws Exception {
Method source = methodFrom(Ignoreable.class);
Method source = methodFrom(Ignorable.class);
assertThat(scan(source, SearchStrategy.TYPE_HIERARCHY)).containsExactly(
"0:TestAnnotation1");
}
@ -752,7 +752,7 @@ class AnnotationsScannerTests { @@ -752,7 +752,7 @@ class AnnotationsScannerTests {
}
@SuppressWarnings("serial")
static class Ignoreable implements IgnoreableOverrideInterface1, IgnoreableOverrideInterface2, Serializable {
static class Ignorable implements IgnorableOverrideInterface1, IgnorableOverrideInterface2, Serializable {
@Override
@TestAnnotation1
@ -760,13 +760,13 @@ class AnnotationsScannerTests { @@ -760,13 +760,13 @@ class AnnotationsScannerTests {
}
}
interface IgnoreableOverrideInterface1 {
interface IgnorableOverrideInterface1 {
@Nullable
void method();
}
interface IgnoreableOverrideInterface2 {
interface IgnorableOverrideInterface2 {
@Nullable
void method();

8
spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsTests.java

@ -338,8 +338,8 @@ class MergedAnnotationsTests { @@ -338,8 +338,8 @@ class MergedAnnotationsTests {
@Test
void getWithInheritedAnnotationsFromHalfConventionBasedAndHalfAliasedComposedAnnotation1() {
// SPR-13554: convention mapping mixed with AlaisFor annotations
// xmlConfigFiles can be used because it has an AlaisFor annotation
// SPR-13554: convention mapping mixed with AliasFor annotations
// xmlConfigFiles can be used because it has an AliasFor annotation
MergedAnnotation<?> annotation = MergedAnnotations.from(
HalfConventionBasedAndHalfAliasedComposedContextConfigurationClass1.class,
SearchStrategy.INHERITED_ANNOTATIONS).get(ContextConfiguration.class);
@ -351,8 +351,8 @@ class MergedAnnotationsTests { @@ -351,8 +351,8 @@ class MergedAnnotationsTests {
@Test
void withInheritedAnnotationsFromHalfConventionBasedAndHalfAliasedComposedAnnotation2() {
// SPR-13554: convention mapping mixed with AlaisFor annotations
// locations doesn't apply because it has no AlaisFor annotation
// SPR-13554: convention mapping mixed with AliasFor annotations
// locations doesn't apply because it has no AliasFor annotation
MergedAnnotation<?> annotation = MergedAnnotations.from(
HalfConventionBasedAndHalfAliasedComposedContextConfigurationClass2.class,
SearchStrategy.INHERITED_ANNOTATIONS).get(ContextConfiguration.class);

Loading…
Cancel
Save