diff --git a/spring-beans/src/test/java/org/springframework/beans/BeanUtilsTests.java b/spring-beans/src/test/java/org/springframework/beans/BeanUtilsTests.java index 711189cdf1cf..7510c8bc2765 100644 --- a/spring-beans/src/test/java/org/springframework/beans/BeanUtilsTests.java +++ b/spring-beans/src/test/java/org/springframework/beans/BeanUtilsTests.java @@ -280,7 +280,7 @@ void copyPropertiesHonorsGenericTypeMatchesForUpperBoundedWildcard() { * {@code Number} can NOT be copied to {@code Integer}. */ @Test - void copyPropertiesDoesNotCopyeFromSuperTypeToSubType() { + void copyPropertiesDoesNotCopyFromSuperTypeToSubType() { NumberHolder numberHolder = new NumberHolder(); numberHolder.setNumber(Integer.valueOf(42)); IntegerHolder integerHolder = new IntegerHolder(); diff --git a/spring-context/src/test/java/org/springframework/context/annotation/ParserStrategyUtilsTests.java b/spring-context/src/test/java/org/springframework/context/annotation/ParserStrategyUtilsTests.java index 87663ede08ed..7acc0c7d201d 100644 --- a/spring-context/src/test/java/org/springframework/context/annotation/ParserStrategyUtilsTests.java +++ b/spring-context/src/test/java/org/springframework/context/annotation/ParserStrategyUtilsTests.java @@ -75,7 +75,7 @@ public void instantiateClassWhenHasNoArgsConstructorCallsAware() { } @Test - public void instantiateClassWhenHasSingleContructorInjectsParams() { + public void instantiateClassWhenHasSingleConstructorInjectsParams() { ArgsConstructor instance = instantiateClass(ArgsConstructor.class); assertThat(instance.environment).isSameAs(this.environment); assertThat(instance.beanFactory).isSameAs(this.registry); @@ -84,7 +84,7 @@ public void instantiateClassWhenHasSingleContructorInjectsParams() { } @Test - public void instantiateClassWhenHasSingleContructorAndAwareInjectsParamsAndCallsAware() { + public void instantiateClassWhenHasSingleConstructorAndAwareInjectsParamsAndCallsAware() { ArgsConstructorAndAware instance = instantiateClass(ArgsConstructorAndAware.class); assertThat(instance.environment).isSameAs(this.environment); assertThat(instance.setEnvironment).isSameAs(this.environment); @@ -104,7 +104,7 @@ public void instantiateClassWhenHasMultipleConstructorsUsesNoArgsConstructor() { } @Test - public void instantiateClassWhenHasMutlipleConstructorsAndNotDefaultThrowsException() { + public void instantiateClassWhenHasMultipleConstructorsAndNotDefaultThrowsException() { assertThatExceptionOfType(BeanInstantiationException.class).isThrownBy(() -> instantiateClass(MultipleConstructorsWithNoDefault.class)); } diff --git a/spring-core/src/test/java/org/springframework/core/annotation/AnnotationBackCompatibiltyTests.java b/spring-core/src/test/java/org/springframework/core/annotation/AnnotationBackCompatibilityTests.java similarity index 98% rename from spring-core/src/test/java/org/springframework/core/annotation/AnnotationBackCompatibiltyTests.java rename to spring-core/src/test/java/org/springframework/core/annotation/AnnotationBackCompatibilityTests.java index 80e137c44eec..582488fa5bda 100644 --- a/spring-core/src/test/java/org/springframework/core/annotation/AnnotationBackCompatibiltyTests.java +++ b/spring-core/src/test/java/org/springframework/core/annotation/AnnotationBackCompatibilityTests.java @@ -29,7 +29,7 @@ * @author Phillip Webb * @since 5.2 */ -class AnnotationBackCompatibiltyTests { +class AnnotationBackCompatibilityTests { @Test void multiplRoutesToMetaAnnotation() { diff --git a/spring-core/src/test/java/org/springframework/core/annotation/AnnotationsScannerTests.java b/spring-core/src/test/java/org/springframework/core/annotation/AnnotationsScannerTests.java index 83518d9b3846..1ef9cd9b003c 100644 --- a/spring-core/src/test/java/org/springframework/core/annotation/AnnotationsScannerTests.java +++ b/spring-core/src/test/java/org/springframework/core/annotation/AnnotationsScannerTests.java @@ -120,7 +120,7 @@ void inheritedAnnotationsStrategyOnClassHierarchyScansInCorrectOrder() { } @Test - void inheritedAnnotationsStrategyOnClassWhenHasAnnotationOnBothClassesIncudesOnlyOne() { + void inheritedAnnotationsStrategyOnClassWhenHasAnnotationOnBothClassesIncludesOnlyOne() { Class source = WithSingleSuperclassAndDoubleInherited.class; assertThat(Arrays.stream(source.getAnnotations()).map( Annotation::annotationType).map(Class::getName)).containsExactly( diff --git a/spring-core/src/test/java/org/springframework/core/env/StandardEnvironmentTests.java b/spring-core/src/test/java/org/springframework/core/env/StandardEnvironmentTests.java index e45f8b189f94..e711924d1d17 100644 --- a/spring-core/src/test/java/org/springframework/core/env/StandardEnvironmentTests.java +++ b/spring-core/src/test/java/org/springframework/core/env/StandardEnvironmentTests.java @@ -242,7 +242,7 @@ void getActiveProfiles_fromSystemProperties_withMultipleProfiles() { } @Test - void getActiveProfiles_fromSystemProperties_withMulitpleProfiles_withWhitespace() { + void getActiveProfiles_fromSystemProperties_withMultipleProfiles_withWhitespace() { System.setProperty(ACTIVE_PROFILES_PROPERTY_NAME, " bar , baz "); // notice whitespace assertThat(environment.getActiveProfiles()).contains("bar", "baz"); System.clearProperty(ACTIVE_PROFILES_PROPERTY_NAME); diff --git a/spring-expression/src/test/java/org/springframework/expression/spel/SetValueTests.java b/spring-expression/src/test/java/org/springframework/expression/spel/SetValueTests.java index c79d286eea4b..08dadcbf346a 100644 --- a/spring-expression/src/test/java/org/springframework/expression/spel/SetValueTests.java +++ b/spring-expression/src/test/java/org/springframework/expression/spel/SetValueTests.java @@ -139,13 +139,13 @@ public void testSetListElementValue() { } @Test - public void testSetGenericListElementValueTypeCoersion() { + public void testSetGenericListElementValueTypeCoercion() { // TODO currently failing since setValue does a getValue and "Wien" string != PlaceOfBirth - check with andy setValue("placesLivedList[0]", "Wien"); } @Test - public void testSetGenericListElementValueTypeCoersionOK() { + public void testSetGenericListElementValueTypeCoercionOK() { setValue("booleanList[0]", "true", Boolean.TRUE); } @@ -171,12 +171,12 @@ public void testIndexingIntoUnsupportedType() { } @Test - public void testSetPropertyTypeCoersion() { + public void testSetPropertyTypeCoercion() { setValue("publicBoolean", "true", Boolean.TRUE); } @Test - public void testSetPropertyTypeCoersionThroughSetter() { + public void testSetPropertyTypeCoercionThroughSetter() { setValue("SomeProperty", "true", Boolean.TRUE); } diff --git a/spring-jdbc/src/test/java/org/springframework/jdbc/datasource/lookup/MapDataSourceLookupTests.java b/spring-jdbc/src/test/java/org/springframework/jdbc/datasource/lookup/MapDataSourceLookupTests.java index 39b7b6dc92b1..6259c89e8e6c 100644 --- a/spring-jdbc/src/test/java/org/springframework/jdbc/datasource/lookup/MapDataSourceLookupTests.java +++ b/spring-jdbc/src/test/java/org/springframework/jdbc/datasource/lookup/MapDataSourceLookupTests.java @@ -73,9 +73,9 @@ public void setDataSourcesIsAnIdempotentOperation() throws Exception { @Test public void addingDataSourcePermitsOverride() throws Exception { Map dataSources = new HashMap<>(); - StubDataSource overridenDataSource = new StubDataSource(); + StubDataSource overriddenDataSource = new StubDataSource(); StubDataSource expectedDataSource = new StubDataSource(); - dataSources.put(DATA_SOURCE_NAME, overridenDataSource); + dataSources.put(DATA_SOURCE_NAME, overriddenDataSource); MapDataSourceLookup lookup = new MapDataSourceLookup(); lookup.setDataSources(dataSources); lookup.addDataSource(DATA_SOURCE_NAME, expectedDataSource); // must override existing entry diff --git a/spring-jdbc/src/test/java/org/springframework/jdbc/support/DatabaseStartupValidatorTests.java b/spring-jdbc/src/test/java/org/springframework/jdbc/support/DatabaseStartupValidatorTests.java index 498d75473fe8..f10f949dc64f 100644 --- a/spring-jdbc/src/test/java/org/springframework/jdbc/support/DatabaseStartupValidatorTests.java +++ b/spring-jdbc/src/test/java/org/springframework/jdbc/support/DatabaseStartupValidatorTests.java @@ -80,7 +80,7 @@ void shouldUseJdbc4IsValidByDefault() throws Exception { } @Test - void shouldCallValidatonTwiceWhenNotValid() throws Exception { + void shouldCallValidationTwiceWhenNotValid() throws Exception { given(connection.isValid(1)).willReturn(false, true); validator.afterPropertiesSet(); @@ -90,7 +90,7 @@ void shouldCallValidatonTwiceWhenNotValid() throws Exception { } @Test - void shouldCallValidatonTwiceInCaseOfException() throws Exception { + void shouldCallValidationTwiceInCaseOfException() throws Exception { given(connection.isValid(1)).willThrow(new SQLException("Test")).willReturn(true); validator.afterPropertiesSet(); @@ -118,7 +118,7 @@ void useValidationQueryInsteadOfIsValid() throws Exception { @Test @SuppressWarnings("deprecation") - void shouldExecuteValidatonTwiceOnError() throws Exception { + void shouldExecuteValidationTwiceOnError() throws Exception { String validationQuery = "SELECT NOW() FROM DUAL"; Statement statement = mock(Statement.class); given(connection.createStatement()).willReturn(statement); diff --git a/spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompHeaderAccessorTests.java b/spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompHeaderAccessorTests.java index 49915dbd01f1..c004e675ea1e 100644 --- a/spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompHeaderAccessorTests.java +++ b/spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompHeaderAccessorTests.java @@ -70,7 +70,7 @@ public void createWithSubscribeNativeHeaders() { } @Test - public void createWithUnubscribeNativeHeaders() { + public void createWithUnsubscribeNativeHeaders() { MultiValueMap extHeaders = new LinkedMultiValueMap<>(); extHeaders.add(StompHeaderAccessor.STOMP_ID_HEADER, "s1"); diff --git a/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java b/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java index 4a4b9c9998ce..84f8c43ff977 100644 --- a/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java +++ b/spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java @@ -126,7 +126,7 @@ public void unmarshalPartialStaxSourceXmlStreamReader() throws Exception { @Test @SuppressWarnings("unchecked") - public void unmarshalAnXmlReferingToAWrappedXmlElementDecl() throws Exception { + public void unmarshalAnXmlReferringToAWrappedXmlElementDecl() throws Exception { // SPR-10714 unmarshaller = new Jaxb2Marshaller(); unmarshaller.setPackagesToScan(new String[] { "org.springframework.oxm.jaxb" }); diff --git a/spring-r2dbc/src/test/java/org/springframework/r2dbc/connection/lookup/MapConnectionFactoryLookupUnitTests.java b/spring-r2dbc/src/test/java/org/springframework/r2dbc/connection/lookup/MapConnectionFactoryLookupUnitTests.java index a61abdbdfaff..bf2dcd5ff6dc 100644 --- a/spring-r2dbc/src/test/java/org/springframework/r2dbc/connection/lookup/MapConnectionFactoryLookupUnitTests.java +++ b/spring-r2dbc/src/test/java/org/springframework/r2dbc/connection/lookup/MapConnectionFactoryLookupUnitTests.java @@ -35,7 +35,7 @@ public class MapConnectionFactoryLookupUnitTests { private static final String CONNECTION_FACTORY_NAME = "connectionFactory"; @Test - public void getConnectionFactorysReturnsUnmodifiableMap() { + public void getConnectionFactoriesReturnsUnmodifiableMap() { MapConnectionFactoryLookup lookup = new MapConnectionFactoryLookup(); Map connectionFactories = lookup.getConnectionFactories(); diff --git a/spring-test/src/test/java/org/springframework/test/context/junit/jupiter/AutowiredConfigurationErrorsIntegrationTests.java b/spring-test/src/test/java/org/springframework/test/context/junit/jupiter/AutowiredConfigurationErrorsIntegrationTests.java index fc877f12a708..919e0b841b3a 100644 --- a/spring-test/src/test/java/org/springframework/test/context/junit/jupiter/AutowiredConfigurationErrorsIntegrationTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/junit/jupiter/AutowiredConfigurationErrorsIntegrationTests.java @@ -72,7 +72,7 @@ class AutowiredConfigurationErrorsIntegrationTests { AutowiredRepeatedTestMethod.class, AutowiredParameterizedTestMethod.class }) - void autowiredTestMethodsTestTemplateMethodsAndLifecyleMethods(Class testClass) { + void autowiredTestMethodsTestTemplateMethodsAndLifecycleMethods(Class testClass) { testEventsFor(testClass) .assertStatistics(stats -> stats.started(1).succeeded(0).failed(1)) .assertThatEvents().haveExactly(1, @@ -111,7 +111,7 @@ void autowiredAndNonAutowiredTestMethods() { NonStaticAutowiredBeforeAllMethod.class, NonStaticAutowiredAfterAllMethod.class }) - void autowiredNonStaticClassLevelLifecyleMethods(Class testClass) { + void autowiredNonStaticClassLevelLifecycleMethods(Class testClass) { containerEventsFor(testClass) .assertStatistics(stats -> stats.started(2).succeeded(1).failed(1)) .assertThatEvents().haveExactly(1, diff --git a/spring-test/src/test/java/org/springframework/test/context/support/ActiveProfilesUtilsTests.java b/spring-test/src/test/java/org/springframework/test/context/support/ActiveProfilesUtilsTests.java index fab23ae19d69..e74e75534a29 100644 --- a/spring-test/src/test/java/org/springframework/test/context/support/ActiveProfilesUtilsTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/support/ActiveProfilesUtilsTests.java @@ -168,7 +168,7 @@ void resolveActiveProfilesWithMergedInheritedResolver() { * @since 4.0 */ @Test - void resolveActiveProfilesWithOverridenInheritedResolver() { + void resolveActiveProfilesWithOverriddenInheritedResolver() { assertResolvedProfiles(OverriddenInheritedFooActiveProfilesResolverTestCase.class, "bar"); } diff --git a/spring-test/src/test/java/org/springframework/test/context/support/DirtiesContextTestExecutionListenerTests.java b/spring-test/src/test/java/org/springframework/test/context/support/DirtiesContextTestExecutionListenerTests.java index f79dfd46a14c..473b8865830b 100644 --- a/spring-test/src/test/java/org/springframework/test/context/support/DirtiesContextTestExecutionListenerTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/support/DirtiesContextTestExecutionListenerTests.java @@ -248,7 +248,7 @@ void declaredViaMetaAnnotationWithOverrides() throws Exception { @Test void declaredViaMetaAnnotationWithOverriddenAttributes() throws Exception { - assertAfterClass(DirtiesContextViaMetaAnnotationWithOverridenAttributes.class); + assertAfterClass(DirtiesContextViaMetaAnnotationWithOverriddenAttributes.class); } } @@ -444,7 +444,7 @@ void test() { } @MetaDirtyWithOverrides(classMode = AFTER_CLASS, hierarchyMode = EXHAUSTIVE) - static class DirtiesContextViaMetaAnnotationWithOverridenAttributes { + static class DirtiesContextViaMetaAnnotationWithOverriddenAttributes { void test() { } diff --git a/spring-test/src/test/java/org/springframework/test/web/reactive/server/DefaultControllerSpecTests.java b/spring-test/src/test/java/org/springframework/test/web/reactive/server/DefaultControllerSpecTests.java index 4613a49f64a4..3a7544011dc0 100644 --- a/spring-test/src/test/java/org/springframework/test/web/reactive/server/DefaultControllerSpecTests.java +++ b/spring-test/src/test/java/org/springframework/test/web/reactive/server/DefaultControllerSpecTests.java @@ -75,7 +75,7 @@ public void controllerAdviceWithClassArgument() { @Test public void configurerConsumers() { TestConsumer argumentResolverConsumer = new TestConsumer<>(); - TestConsumer contenTypeResolverConsumer = new TestConsumer<>(); + TestConsumer contentTypeResolverConsumer = new TestConsumer<>(); TestConsumer corsRegistryConsumer = new TestConsumer<>(); TestConsumer formatterConsumer = new TestConsumer<>(); TestConsumer codecsConsumer = new TestConsumer<>(); @@ -84,7 +84,7 @@ public void configurerConsumers() { new DefaultControllerSpec(new MyController()) .argumentResolvers(argumentResolverConsumer) - .contentTypeResolver(contenTypeResolverConsumer) + .contentTypeResolver(contentTypeResolverConsumer) .corsMappings(corsRegistryConsumer) .formatters(formatterConsumer) .httpMessageCodecs(codecsConsumer) @@ -93,7 +93,7 @@ public void configurerConsumers() { .build(); assertThat(argumentResolverConsumer.getValue()).isNotNull(); - assertThat(contenTypeResolverConsumer.getValue()).isNotNull(); + assertThat(contentTypeResolverConsumer.getValue()).isNotNull(); assertThat(corsRegistryConsumer.getValue()).isNotNull(); assertThat(formatterConsumer.getValue()).isNotNull(); assertThat(codecsConsumer.getValue()).isNotNull(); diff --git a/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingDataBindingIntegrationTests.java b/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingDataBindingIntegrationTests.java index 8cce6adcec7d..8608a2f329d1 100644 --- a/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingDataBindingIntegrationTests.java +++ b/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingDataBindingIntegrationTests.java @@ -110,8 +110,8 @@ public String handleDateParam(@RequestParam Date date) { } @ModelAttribute - public Mono addFooAttribute(@PathVariable("id") Optional optiponalId) { - return optiponalId.map(id -> Mono.just(new Foo(id))).orElse(Mono.empty()); + public Mono addFooAttribute(@PathVariable("id") Optional optionalId) { + return optionalId.map(id -> Mono.just(new Foo(id))).orElse(Mono.empty()); } @PostMapping("/foos/{id}") diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupportTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupportTests.java index dad6504f9a1c..78271194ffbe 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupportTests.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupportTests.java @@ -336,7 +336,7 @@ public void defaultLocaleResolverConfiguration() { } @Test - public void defaultThemeResolverfiguration() { + public void defaultThemeResolverConfiguration() { ApplicationContext context = initContext(WebConfig.class); ThemeResolver themeResolver = context.getBean(THEME_RESOLVER_BEAN_NAME, ThemeResolver.class); diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/RequestMappingInfoTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/RequestMappingInfoTests.java index 985ed0456894..97597738f932 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/RequestMappingInfoTests.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/RequestMappingInfoTests.java @@ -185,7 +185,7 @@ void matchCustomCondition() { } @Test - void compareToWithImpicitVsExplicitHttpMethodDeclaration() { + void compareToWithImplicitVsExplicitHttpMethodDeclaration() { RequestMappingInfo noMethods = RequestMappingInfo.paths().build(); RequestMappingInfo oneMethod = RequestMappingInfo.paths().methods(GET).build(); RequestMappingInfo oneMethodOneParam = RequestMappingInfo.paths().methods(GET).params("foo").build(); diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/tags/UrlTagTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/tags/UrlTagTests.java index 1b84cd220408..b013484ea7d1 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/tags/UrlTagTests.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/tags/UrlTagTests.java @@ -223,7 +223,7 @@ public void createQueryStringOneParam() throws JspException { } @Test - public void createQueryStringOneParamForExsistingQueryString() throws JspException { + public void createQueryStringOneParamForExistingQueryString() throws JspException { List params = new ArrayList<>(); Set usedParams = new HashSet<>();