This commit is contained in:
Andy Wilkinson 2017-11-21 12:23:16 +00:00
parent 64ae83b964
commit ff3d7c2ca1

View File

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