|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.mock.web.MockServletContext
org.springframework.extensions.surf.SurfServletContext
public class SurfServletContext
Servlet Context for Surf Testing Eliminates JAR file lookups into /WEB-INF/lib by Freemarker
| Field Summary | |
|---|---|
protected File |
rootFolder
|
| Constructor Summary | |
|---|---|
SurfServletContext(File rootFolder)
|
|
| Method Summary | |
|---|---|
String |
getRealPath(String path)
This allows local file system stores to resolve paths to maven test directories |
Set<String> |
getResourcePaths(String path)
This prevents Freemarker Taglibs from working (during tests) |
| Methods inherited from class org.springframework.mock.web.MockServletContext |
|---|
addInitParameter, getAttribute, getAttributeNames, getContext, getContextPath, getInitParameter, getInitParameterNames, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getRequestDispatcher, getResource, getResourceAsStream, getResourceLocation, getServerInfo, getServlet, getServletContextName, getServletNames, getServlets, log, log, log, registerContext, removeAttribute, setAttribute, setContextPath, setMinorVersion, setServletContextName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File rootFolder
| Constructor Detail |
|---|
public SurfServletContext(File rootFolder)
| Method Detail |
|---|
public Set<String> getResourcePaths(String path)
getResourcePaths in interface javax.servlet.ServletContextgetResourcePaths in class org.springframework.mock.web.MockServletContextpublic String getRealPath(String path)
getRealPath in interface javax.servlet.ServletContextgetRealPath in class org.springframework.mock.web.MockServletContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||