From 89805fdb61b55a08c96ca30734f51d31ac4160ac Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 4 Mar 2020 15:04:47 +0100 Subject: [PATCH] Fix checkstyle violations --- .../ldap/embedded/EmbeddedLdapAutoConfigurationTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ldap/embedded/EmbeddedLdapAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ldap/embedded/EmbeddedLdapAutoConfigurationTests.java index 43ecc94435..dc3d02c6f9 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ldap/embedded/EmbeddedLdapAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ldap/embedded/EmbeddedLdapAutoConfigurationTests.java @@ -153,7 +153,7 @@ class EmbeddedLdapAutoConfigurationTests { void ldapContextSourceWithCredentialsIsCreated() { this.contextRunner.withPropertyValues("spring.ldap.embedded.base-dn:dc=spring,dc=org", "spring.ldap.embedded.credential.username:uid=root", "spring.ldap.embedded.credential.password:boot") - .run(context -> { + .run((context) -> { LdapContextSource ldapContextSource = context.getBean(LdapContextSource.class); assertThat(ldapContextSource.getUrls()).isNotEmpty(); assertThat(ldapContextSource.getUserDn()).isEqualTo("uid=root"); @@ -162,7 +162,7 @@ class EmbeddedLdapAutoConfigurationTests { @Test void ldapContextSourceWithoutCredentialsIsCreated() { - this.contextRunner.withPropertyValues("spring.ldap.embedded.base-dn:dc=spring,dc=org").run(context -> { + this.contextRunner.withPropertyValues("spring.ldap.embedded.base-dn:dc=spring,dc=org").run((context) -> { LdapContextSource ldapContextSource = context.getBean(LdapContextSource.class); assertThat(ldapContextSource.getUrls()).isNotEmpty(); assertThat(ldapContextSource.getUserDn()).isEmpty(); @@ -172,7 +172,7 @@ class EmbeddedLdapAutoConfigurationTests { @Test void ldapContextWithoutSpringLdapIsNotCreated() { this.contextRunner.withPropertyValues("spring.ldap.embedded.base-dn:dc=spring,dc=org") - .withClassLoader(new FilteredClassLoader(ContextSource.class)).run(context -> { + .withClassLoader(new FilteredClassLoader(ContextSource.class)).run((context) -> { assertThat(context).hasNotFailed(); assertThat(context).doesNotHaveBean(LdapContextSource.class); });