Merge branch '2.7.x' into 3.0.x

Closes gh-38166
This commit is contained in:
Andy Wilkinson 2023-11-01 15:00:36 +00:00
commit b7f00c1087
4 changed files with 6 additions and 6 deletions

View File

@ -100,7 +100,7 @@ class BuildInfoTests {
}
@Test
void nameCanBeExludedRemovedFromProperties() {
void nameCanBeExcludedFromProperties() {
BuildInfo task = createTask(createProject("test"));
task.getExcludes().add("name");
assertThat(buildInfoProperties(task)).doesNotContainKey("build.name");

View File

@ -220,7 +220,7 @@ class ConfigDataEnvironmentPostProcessorIntegrationTests {
}
@Test
void runWhenHasActiveProfilesFromMultipleAdditionaLocationsWithOneSwitchedOffLoadsExpectedProperties() {
void runWhenHasActiveProfilesFromMultipleAdditionalLocationsWithOneSwitchedOffLoadsExpectedProperties() {
ConfigurableApplicationContext context = this.application.run(
"--spring.config.additional-location=classpath:enabletwoprofiles.properties,classpath:enableprofile.properties");
ConfigurableEnvironment environment = context.getEnvironment();
@ -230,7 +230,7 @@ class ConfigDataEnvironmentPostProcessorIntegrationTests {
}
@Test
void runWhenHaslocalFileLoadsWithLocalFileTakingPrecedenceOverClasspath() throws Exception {
void runWhenHasLocalFileLoadsWithLocalFileTakingPrecedenceOverClasspath() throws Exception {
File localFile = new File(new File("."), "application.properties");
assertThat(localFile).doesNotExist();
try {

View File

@ -214,7 +214,7 @@ class BindableRuntimeHintsRegistrarTests {
}
@Test
void pregisterHintsWhenHasUnresolvedGeneric() {
void registerHintsWhenHasUnresolvedGeneric() {
RuntimeHints runtimeHints = registerHints(WithGeneric.class);
assertThat(runtimeHints.reflection().typeHints()).hasSize(2)
.anySatisfy(javaBeanBinding(WithGeneric.class, "getGeneric"))

View File

@ -185,7 +185,7 @@ class LogbackConfigurationAotContributionTests {
@Test
void componentTypesOfArraysAreRegisteredForReflection() {
ComponentModel component = new ComponentModel();
component.setClassName(ArrayParmeters.class.getName());
component.setClassName(ArrayParameters.class.getName());
TestGenerationContext generationContext = applyContribution(component);
assertThat(invokePublicConstructorsAndInspectAndInvokePublicMethodsOf(InetSocketAddress.class))
.accepts(generationContext.getRuntimeHints());
@ -287,7 +287,7 @@ class LogbackConfigurationAotContributionTests {
}
public static class ArrayParmeters {
public static class ArrayParameters {
public void addDestinations(InetSocketAddress... addresses) {