org.springframework.boot.test.mock.web

Class SpringBootMockServletContext

  • All Implemented Interfaces:
    ServletContext


    public class SpringBootMockServletContext
    extends MockServletContext
    MockServletContext implementation for Spring Boot. Respects well-known Spring Boot resource locations and uses an empty directory for "/" if no locations can be found.
    Since:
    1.4.0
    Author:
    Phillip Webb