Skip to content

Commit e1602fe

Browse files
committed
Polish
1 parent 37bef96 commit e1602fe

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcAutoConfigurationTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,6 @@ public void managementServerCanDisableSslWhenUsingADifferentPort() throws Except
574574
"server.ssl.enabled=true", "server.ssl.key-store=classpath:test.jks",
575575
"server.ssl.key-password=password", "management.ssl.enabled=false")
576576
.applyTo(this.applicationContext);
577-
578577
this.applicationContext.register(RootConfig.class, EndpointConfig.class,
579578
DifferentPortConfig.class, BaseConfiguration.class,
580579
EndpointWebMvcAutoConfiguration.class, ErrorMvcAutoConfiguration.class);

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/SecurityAutoConfigurationTests.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,10 @@ public void testJpaCoexistsHappily() throws Exception {
293293
public void testDefaultUsernamePassword() throws Exception {
294294
this.context = new AnnotationConfigWebApplicationContext();
295295
this.context.setServletContext(new MockServletContext());
296-
297296
this.context.register(SecurityAutoConfiguration.class);
298297
this.context.refresh();
299-
300298
SecurityProperties security = this.context.getBean(SecurityProperties.class);
301299
AuthenticationManager manager = this.context.getBean(AuthenticationManager.class);
302-
303300
UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(
304301
security.getUser().getName(), security.getUser().getPassword());
305302
assertThat(manager.authenticate(token)).isNotNull();
@@ -310,14 +307,11 @@ public void testCustomAuthenticationDoesNotAuthenticateWithBootSecurityUser()
310307
throws Exception {
311308
this.context = new AnnotationConfigWebApplicationContext();
312309
this.context.setServletContext(new MockServletContext());
313-
314310
this.context.register(AuthenticationManagerCustomizer.class,
315311
SecurityAutoConfiguration.class);
316312
this.context.refresh();
317-
318313
SecurityProperties security = this.context.getBean(SecurityProperties.class);
319314
AuthenticationManager manager = this.context.getBean(AuthenticationManager.class);
320-
321315
UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(
322316
security.getUser().getName(), security.getUser().getPassword());
323317
try {
@@ -327,7 +321,6 @@ public void testCustomAuthenticationDoesNotAuthenticateWithBootSecurityUser()
327321
catch (AuthenticationException success) {
328322
// Expected
329323
}
330-
331324
token = new UsernamePasswordAuthenticationToken("foo", "bar");
332325
assertThat(manager.authenticate(token)).isNotNull();
333326
}

0 commit comments

Comments
 (0)