This class fakes the data in web.xml, and returns a {@link FakeServletContext}. The ServletContext is needed for scanning in your .sql files. As well, it references {@link FakeConnectionSrc}.
The main use case for this class is to be passed to {@link hirondelle.web4j.Controller#init(javax.servlet.ServletConfig)}.
This implementation hard-codes its data. Other implementations might read data from another source - perhaps a properties file, or perhaps web.xml itself.
|
|