Polish
This commit is contained in:
parent
723222aa95
commit
1e7d85a632
|
@ -55,10 +55,9 @@ public abstract class PathBasedTemplateAvailabilityProvider
|
|||
ClassLoader classLoader, ResourceLoader resourceLoader) {
|
||||
if (ClassUtils.isPresent(this.className, classLoader)) {
|
||||
Binder binder = Binder.get(environment);
|
||||
TemplateAvailabilityProperties properties1 = binder
|
||||
TemplateAvailabilityProperties properties = binder
|
||||
.bind(this.propertyPrefix, this.propertiesClass)
|
||||
.orElseCreate(this.propertiesClass);
|
||||
TemplateAvailabilityProperties properties = properties1;
|
||||
return isTemplateAvailable(view, resourceLoader, properties);
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -269,7 +269,8 @@ public abstract class AbstractServletWebServerFactoryTests {
|
|||
factory.setContextPath("/custom");
|
||||
this.webServer = factory.getWebServer(exampleServletRegistration());
|
||||
this.webServer.start();
|
||||
assertThat(this.output.toString()).containsOnlyOnce("with context path '/custom'");
|
||||
assertThat(this.output.toString())
|
||||
.containsOnlyOnce("with context path '/custom'");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue