Search in sources :

Example 1 with TemplateAvailabilityProviders

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);
}
Also used : TemplateAvailabilityProviders(org.springframework.boot.autoconfigure.template.TemplateAvailabilityProviders) AnnotationConfigApplicationContext(org.springframework.context.annotation.AnnotationConfigApplicationContext) Resources(org.springframework.boot.autoconfigure.web.WebProperties.Resources) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 TemplateAvailabilityProviders (org.springframework.boot.autoconfigure.template.TemplateAvailabilityProviders)1 Resources (org.springframework.boot.autoconfigure.web.WebProperties.Resources)1 AnnotationConfigApplicationContext (org.springframework.context.annotation.AnnotationConfigApplicationContext)1