com.google.appengine.tools.development.testing
Class BaseDevAppServerTestConfig
- java.lang.Object
-
- com.google.appengine.tools.development.testing.BaseDevAppServerTestConfig
-
- All Implemented Interfaces:
- DevAppServerTestConfig
public abstract class BaseDevAppServerTestConfig extends java.lang.Object implements DevAppServerTestConfig
BaseDevAppServerTestConfigimplementation with common defaults: Use/WEB-INF/web.xml. Use /WEB-INF/appengine-web.xml. Install the security manager. Make the dev appserver port available in a system property named DEFAULT_PORT_SYSTEM_PROPERTY.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringDEFAULT_PORT_SYSTEM_PROPERTY
-
Constructor Summary
Constructors Constructor and Description BaseDevAppServerTestConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.io.FilegetAppEngineWebXml()java.lang.StringgetPortSystemProperty()java.io.FilegetWebXml()booleaninstallSecurityManager()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.appengine.tools.development.testing.DevAppServerTestConfig
getAppDir, getClasspath, getSdkRoot
-
-
-
-
Field Detail
-
DEFAULT_PORT_SYSTEM_PROPERTY
public static final java.lang.String DEFAULT_PORT_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getWebXml
public java.io.File getWebXml()
- Specified by:
getWebXmlin interfaceDevAppServerTestConfig- Returns:
- The location of web.xml. If
null,DevAppServerTestConfig.getAppDir()/WEB-INF/web.xml will be used.
-
getAppEngineWebXml
public java.io.File getAppEngineWebXml()
- Specified by:
getAppEngineWebXmlin interfaceDevAppServerTestConfig- Returns:
- The location of appengine-web.xml. If
null,DevAppServerTestConfig.getAppDir()/WEB-INF/appengine-web.xml will be used.
-
installSecurityManager
public boolean installSecurityManager()
- Specified by:
installSecurityManagerin interfaceDevAppServerTestConfig- Returns:
- If
true, the dev appserver will be installed with the local app engineSecurityManager. It is strongly recommended you install the SecurityManager unless your testing environment does not allow SecurityManager to be installed.
-
getPortSystemProperty
public java.lang.String getPortSystemProperty()
- Specified by:
getPortSystemPropertyin interfaceDevAppServerTestConfig- Returns:
- The name of the system property that can be consulted to retrieve the port on which the dev appserver is running.
-
-