Commit ff3d7c2c authored by Andy Wilkinson's avatar Andy Wilkinson

Polish

parent 64ae83b9
...@@ -804,9 +804,7 @@ public class WebMvcAutoConfigurationTests { ...@@ -804,9 +804,7 @@ public class WebMvcAutoConfigurationTests {
@Test @Test
public void cachePeriod() throws Exception { public void cachePeriod() throws Exception {
this.contextRunner.withPropertyValues("spring.resources.cache-period:5") this.contextRunner.withPropertyValues("spring.resources.cache-period:5")
.run((context) -> { .run((context) -> assertCachePeriod(context));
assertCachePeriod(context);
});
} }
private void assertCachePeriod(AssertableWebApplicationContext context) { private void assertCachePeriod(AssertableWebApplicationContext context) {
...@@ -829,9 +827,7 @@ public class WebMvcAutoConfigurationTests { ...@@ -829,9 +827,7 @@ public class WebMvcAutoConfigurationTests {
this.contextRunner this.contextRunner
.withPropertyValues("spring.resources.cache-control.max-age:5", .withPropertyValues("spring.resources.cache-control.max-age:5",
"spring.resources.cache-control.proxy-revalidate:true") "spring.resources.cache-control.proxy-revalidate:true")
.run((context) -> { .run((context) -> assertCacheControl(context));
assertCacheControl(context);
});
} }
private void assertCacheControl(AssertableWebApplicationContext context) { private void assertCacheControl(AssertableWebApplicationContext context) {
......
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