Skip to content

Commit 89805fd

Browse files
committed
Fix checkstyle violations
1 parent e1771fa commit 89805fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ldap/embedded/EmbeddedLdapAutoConfigurationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void testMultiBaseDn() {
153153
void ldapContextSourceWithCredentialsIsCreated() {
154154
this.contextRunner.withPropertyValues("spring.ldap.embedded.base-dn:dc=spring,dc=org",
155155
"spring.ldap.embedded.credential.username:uid=root", "spring.ldap.embedded.credential.password:boot")
156-
.run(context -> {
156+
.run((context) -> {
157157
LdapContextSource ldapContextSource = context.getBean(LdapContextSource.class);
158158
assertThat(ldapContextSource.getUrls()).isNotEmpty();
159159
assertThat(ldapContextSource.getUserDn()).isEqualTo("uid=root");
@@ -162,7 +162,7 @@ void ldapContextSourceWithCredentialsIsCreated() {
162162

163163
@Test
164164
void ldapContextSourceWithoutCredentialsIsCreated() {
165-
this.contextRunner.withPropertyValues("spring.ldap.embedded.base-dn:dc=spring,dc=org").run(context -> {
165+
this.contextRunner.withPropertyValues("spring.ldap.embedded.base-dn:dc=spring,dc=org").run((context) -> {
166166
LdapContextSource ldapContextSource = context.getBean(LdapContextSource.class);
167167
assertThat(ldapContextSource.getUrls()).isNotEmpty();
168168
assertThat(ldapContextSource.getUserDn()).isEmpty();
@@ -172,7 +172,7 @@ void ldapContextSourceWithoutCredentialsIsCreated() {
172172
@Test
173173
void ldapContextWithoutSpringLdapIsNotCreated() {
174174
this.contextRunner.withPropertyValues("spring.ldap.embedded.base-dn:dc=spring,dc=org")
175-
.withClassLoader(new FilteredClassLoader(ContextSource.class)).run(context -> {
175+
.withClassLoader(new FilteredClassLoader(ContextSource.class)).run((context) -> {
176176
assertThat(context).hasNotFailed();
177177
assertThat(context).doesNotHaveBean(LdapContextSource.class);
178178
});

0 commit comments

Comments
 (0)