Search in sources :

Example 1 with StaticResourcesWebConfiguration

use of com.auth0.flickr2.config.StaticResourcesWebConfiguration in project auth0-full-stack-java-example by oktadev.

the class StaticResourcesWebConfigurerTest method setUp.

@BeforeEach
void setUp() {
    servletContext = spy(new MockServletContext());
    applicationContext = mock(WebApplicationContext.class);
    resourceHandlerRegistry = spy(new ResourceHandlerRegistry(applicationContext, servletContext));
    props = new JHipsterProperties();
    staticResourcesWebConfiguration = spy(new StaticResourcesWebConfiguration(props));
}
Also used : JHipsterProperties(tech.jhipster.config.JHipsterProperties) StaticResourcesWebConfiguration(com.auth0.flickr2.config.StaticResourcesWebConfiguration) ResourceHandlerRegistry(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry) MockServletContext(org.springframework.mock.web.MockServletContext) WebApplicationContext(org.springframework.web.context.WebApplicationContext) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

StaticResourcesWebConfiguration (com.auth0.flickr2.config.StaticResourcesWebConfiguration)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1 MockServletContext (org.springframework.mock.web.MockServletContext)1 WebApplicationContext (org.springframework.web.context.WebApplicationContext)1 ResourceHandlerRegistry (org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry)1 JHipsterProperties (tech.jhipster.config.JHipsterProperties)1