Commit c95b339f authored by Johnny Lim's avatar Johnny Lim Committed by Stephane Nicoll

Polish

Closes gh-14149
parent 84901fa5
...@@ -71,7 +71,7 @@ public class JpaRepositoriesAutoConfiguration { ...@@ -71,7 +71,7 @@ public class JpaRepositoriesAutoConfiguration {
@Bean @Bean
@Conditional(BootstrapExecutorCondition.class) @Conditional(BootstrapExecutorCondition.class)
public EntityManagerFactoryBuilderCustomizer entityManagerFactoryBoostrapExecutorCustomizer( public EntityManagerFactoryBuilderCustomizer entityManagerFactoryBootstrapExecutorCustomizer(
ObjectProvider<AsyncTaskExecutor> taskExecutor) { ObjectProvider<AsyncTaskExecutor> taskExecutor) {
return (builder) -> builder.setBootstrapExecutor(taskExecutor.getIfAvailable()); return (builder) -> builder.setBootstrapExecutor(taskExecutor.getIfAvailable());
} }
......
...@@ -87,7 +87,7 @@ public class JpaRepositoriesAutoConfigurationTests { ...@@ -87,7 +87,7 @@ public class JpaRepositoriesAutoConfigurationTests {
} }
@Test @Test
public void whenBootstrappingModeIsLazyBoostrapExecutorIsConfigured() { public void whenBootstrappingModeIsLazyBootstrapExecutorIsConfigured() {
this.contextRunner.withUserConfiguration(TestConfiguration.class) this.contextRunner.withUserConfiguration(TestConfiguration.class)
.withPropertyValues("spring.data.jpa.repositories.bootstrap-mode=lazy") .withPropertyValues("spring.data.jpa.repositories.bootstrap-mode=lazy")
.run((context) -> assertThat( .run((context) -> assertThat(
...@@ -96,7 +96,7 @@ public class JpaRepositoriesAutoConfigurationTests { ...@@ -96,7 +96,7 @@ public class JpaRepositoriesAutoConfigurationTests {
} }
@Test @Test
public void whenBootstrappingModeIsDeferredBoostrapExecutorIsConfigured() { public void whenBootstrappingModeIsDeferredBootstrapExecutorIsConfigured() {
this.contextRunner.withUserConfiguration(TestConfiguration.class) this.contextRunner.withUserConfiguration(TestConfiguration.class)
.withPropertyValues( .withPropertyValues(
"spring.data.jpa.repositories.bootstrap-mode=deferred") "spring.data.jpa.repositories.bootstrap-mode=deferred")
...@@ -106,7 +106,7 @@ public class JpaRepositoriesAutoConfigurationTests { ...@@ -106,7 +106,7 @@ public class JpaRepositoriesAutoConfigurationTests {
} }
@Test @Test
public void whenBootstrappingModeIsDefaultBoostrapExecutorIsNotConfigured() { public void whenBootstrappingModeIsDefaultBootstrapExecutorIsNotConfigured() {
this.contextRunner.withUserConfiguration(TestConfiguration.class) this.contextRunner.withUserConfiguration(TestConfiguration.class)
.withPropertyValues("spring.data.jpa.repositories.bootstrap-mode=default") .withPropertyValues("spring.data.jpa.repositories.bootstrap-mode=default")
.run((context) -> assertThat( .run((context) -> assertThat(
......
...@@ -54,7 +54,7 @@ public class TaskSchedulingAutoConfigurationTests { ...@@ -54,7 +54,7 @@ public class TaskSchedulingAutoConfigurationTests {
} }
@Test @Test
public void enableSchedulingWithNoTakExecutorAutoConfiguresOne() { public void enableSchedulingWithNoTaskExecutorAutoConfiguresOne() {
this.contextRunner this.contextRunner
.withPropertyValues( .withPropertyValues(
"spring.task.scheduling.thread-name-prefix=scheduling-test-") "spring.task.scheduling.thread-name-prefix=scheduling-test-")
...@@ -68,7 +68,7 @@ public class TaskSchedulingAutoConfigurationTests { ...@@ -68,7 +68,7 @@ public class TaskSchedulingAutoConfigurationTests {
} }
@Test @Test
public void enableSchedulingWithNoTakExecutorAppliesCustomizers() { public void enableSchedulingWithNoTaskExecutorAppliesCustomizers() {
this.contextRunner this.contextRunner
.withPropertyValues( .withPropertyValues(
"spring.task.scheduling.thread-name-prefix=scheduling-test-") "spring.task.scheduling.thread-name-prefix=scheduling-test-")
...@@ -84,7 +84,7 @@ public class TaskSchedulingAutoConfigurationTests { ...@@ -84,7 +84,7 @@ public class TaskSchedulingAutoConfigurationTests {
} }
@Test @Test
public void enableSchedulingWithExistingTakSchedulerBacksOff() { public void enableSchedulingWithExistingTaskSchedulerBacksOff() {
this.contextRunner.withUserConfiguration(SchedulingConfiguration.class, this.contextRunner.withUserConfiguration(SchedulingConfiguration.class,
TaskSchedulerConfiguration.class).run((context) -> { TaskSchedulerConfiguration.class).run((context) -> {
assertThat(context).hasSingleBean(TaskScheduler.class); assertThat(context).hasSingleBean(TaskScheduler.class);
......
...@@ -39,7 +39,7 @@ public class DataLdapTestPropertiesIntegrationTests { ...@@ -39,7 +39,7 @@ public class DataLdapTestPropertiesIntegrationTests {
private Environment environment; private Environment environment;
@Test @Test
public void environmentWitNewProfile() { public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0]; String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test"); assertThat(profile).isEqualTo("test");
} }
......
...@@ -39,7 +39,7 @@ public class DataMongoTestPropertiesIntegrationTests { ...@@ -39,7 +39,7 @@ public class DataMongoTestPropertiesIntegrationTests {
private Environment environment; private Environment environment;
@Test @Test
public void environmentWitNewProfile() { public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0]; String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test"); assertThat(profile).isEqualTo("test");
} }
......
...@@ -49,7 +49,7 @@ public class DataNeo4jTestPropertiesIntegrationTests { ...@@ -49,7 +49,7 @@ public class DataNeo4jTestPropertiesIntegrationTests {
private Environment environment; private Environment environment;
@Test @Test
public void environmentWitNewProfile() { public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0]; String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test"); assertThat(profile).isEqualTo("test");
} }
......
...@@ -49,7 +49,7 @@ public class DataRedisTestPropertiesIntegrationTests { ...@@ -49,7 +49,7 @@ public class DataRedisTestPropertiesIntegrationTests {
private Environment environment; private Environment environment;
@Test @Test
public void environmentWitNewProfile() { public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0]; String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test"); assertThat(profile).isEqualTo("test");
} }
......
...@@ -39,7 +39,7 @@ public class JdbcTestPropertiesIntegrationTests { ...@@ -39,7 +39,7 @@ public class JdbcTestPropertiesIntegrationTests {
private Environment environment; private Environment environment;
@Test @Test
public void environmentWitNewProfile() { public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0]; String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test"); assertThat(profile).isEqualTo("test");
} }
......
...@@ -39,7 +39,7 @@ public class JooqTestPropertiesIntegrationTests { ...@@ -39,7 +39,7 @@ public class JooqTestPropertiesIntegrationTests {
private Environment environment; private Environment environment;
@Test @Test
public void environmentWitNewProfile() { public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0]; String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test"); assertThat(profile).isEqualTo("test");
} }
......
...@@ -39,7 +39,7 @@ public class JsonTestPropertiesIntegrationTests { ...@@ -39,7 +39,7 @@ public class JsonTestPropertiesIntegrationTests {
private Environment environment; private Environment environment;
@Test @Test
public void environmentWitNewProfile() { public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0]; String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test"); assertThat(profile).isEqualTo("test");
} }
......
...@@ -39,7 +39,7 @@ public class DataJpaTestPropertiesIntegrationTests { ...@@ -39,7 +39,7 @@ public class DataJpaTestPropertiesIntegrationTests {
private Environment environment; private Environment environment;
@Test @Test
public void environmentWitNewProfile() { public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0]; String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test"); assertThat(profile).isEqualTo("test");
} }
......
...@@ -39,7 +39,7 @@ public class RestClientTestPropertiesIntegrationTests { ...@@ -39,7 +39,7 @@ public class RestClientTestPropertiesIntegrationTests {
private Environment environment; private Environment environment;
@Test @Test
public void environmentWitNewProfile() { public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0]; String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test"); assertThat(profile).isEqualTo("test");
} }
......
...@@ -39,7 +39,7 @@ public class WebFluxTestPropertiesIntegrationTests { ...@@ -39,7 +39,7 @@ public class WebFluxTestPropertiesIntegrationTests {
private Environment environment; private Environment environment;
@Test @Test
public void environmentWitNewProfile() { public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0]; String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test"); assertThat(profile).isEqualTo("test");
} }
......
...@@ -39,7 +39,7 @@ public class WebMvcTestPropertiesIntegrationTests { ...@@ -39,7 +39,7 @@ public class WebMvcTestPropertiesIntegrationTests {
private Environment environment; private Environment environment;
@Test @Test
public void environmentWitNewProfile() { public void environmentWithNewProfile() {
String profile = this.environment.getActiveProfiles()[0]; String profile = this.environment.getActiveProfiles()[0];
assertThat(profile).isEqualTo("test"); assertThat(profile).isEqualTo("test");
} }
......
...@@ -35,7 +35,7 @@ import static org.assertj.core.api.Assertions.assertThat; ...@@ -35,7 +35,7 @@ import static org.assertj.core.api.Assertions.assertThat;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, properties = { @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, properties = {
"APP-CLIENT-ID=my-client-id", "APP-CLIENT-SECRET=my-client-secret", "APP-CLIENT-ID=my-client-id", "APP-CLIENT-SECRET=my-client-secret",
"YAHOO-CLIENT-ID=my-yahoo-client-id", "YAHOO-CLIENT-ID=my-yahoo-client-id",
"YAHOO-CLIENT-SECRET=my-yahooo-client-secret" }) "YAHOO-CLIENT-SECRET=my-yahoo-client-secret" })
public class SampleOAuth2ClientApplicationTests { public class SampleOAuth2ClientApplicationTests {
@LocalServerPort @LocalServerPort
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment