use of org.springframework.boot.autoconfigure.template.TemplateAvailabilityProviders in project spring-boot by spring-projects.
the class DefaultErrorViewResolverTests method setup.
@BeforeEach
void setup() {
AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
applicationContext.refresh();
this.resourcesProperties = new Resources();
TemplateAvailabilityProviders templateAvailabilityProviders = new TestTemplateAvailabilityProviders(this.templateAvailabilityProvider);
this.resolver = new DefaultErrorViewResolver(applicationContext, this.resourcesProperties, templateAvailabilityProviders);
}
Aggregations