public class RiTestServer extends Object implements TestServer
test.home
server.classpath| Modifier and Type | Field and Description |
|---|---|
static String |
BAD_ENVIRONMENT_ERROR |
protected String |
classPath |
protected String |
configFile |
protected DataInputStream |
err |
protected DataInputStream |
in |
protected Process |
server |
static String |
SERVER_CLASSPATH |
static String |
SERVER_CONFIG |
protected String |
serverClassName |
static String |
START_SERVER_PROCESS |
protected boolean |
startServerProcess |
static String |
TEST_HOME
The environment variable
test.home sould be set
to the base directory where the test suite is located. |
protected File |
testHome |
protected String |
testHomePath |
| Constructor and Description |
|---|
RiTestServer() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Properties |
getContextEnvironment() |
void |
init(Properties props) |
void |
start()
Starts and Ri Server with the configuration file from
the properties used to create this RiTestServer.
|
void |
stop() |
protected Process server
protected boolean startServerProcess
protected String configFile
protected String serverClassName
protected String classPath
protected DataInputStream in
protected DataInputStream err
protected String testHomePath
protected File testHome
public static final String TEST_HOME
test.home sould be set
to the base directory where the test suite is located.public static final String SERVER_CLASSPATH
public static final String SERVER_CONFIG
public static final String START_SERVER_PROCESS
public static final String BAD_ENVIRONMENT_ERROR
public void init(Properties props)
init in interface TestServerpublic void destroy()
public void start()
start in interface TestServerconfFileName - public void stop()
stop in interface TestServerpublic Properties getContextEnvironment()
getContextEnvironment in interface TestServerCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.