org.openejb.test
Class RiTestServer
java.lang.Object
org.openejb.test.RiTestServer
- All Implemented Interfaces:
- TestServer
public class RiTestServer
- extends java.lang.Object
- implements TestServer
The Client test suite needs the following environment variables
to be set before it can be run.
test.home
server.classpath
- Author:
- David Blevins, Richard Monson-Haefel
Method Summary |
void |
destroy()
|
java.util.Properties |
getContextEnvironment()
|
void |
init(java.util.Properties props)
|
void |
start()
Starts and Ri Server with the configuration file from
the properties used to create this RiTestServer. |
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
server
protected java.lang.Process server
startServerProcess
protected boolean startServerProcess
configFile
protected java.lang.String configFile
serverClassName
protected java.lang.String serverClassName
classPath
protected java.lang.String classPath
in
protected java.io.DataInputStream in
err
protected java.io.DataInputStream err
testHomePath
protected java.lang.String testHomePath
testHome
protected java.io.File testHome
TEST_HOME
public static final java.lang.String TEST_HOME
- The environment variable
test.home
sould be set
to the base directory where the test suite is located.
- See Also:
- Constant Field Values
SERVER_CLASSPATH
public static final java.lang.String SERVER_CLASSPATH
- See Also:
- Constant Field Values
SERVER_CONFIG
public static final java.lang.String SERVER_CONFIG
- See Also:
- Constant Field Values
START_SERVER_PROCESS
public static final java.lang.String START_SERVER_PROCESS
- See Also:
- Constant Field Values
BAD_ENVIRONMENT_ERROR
public static final java.lang.String BAD_ENVIRONMENT_ERROR
- See Also:
- Constant Field Values
RiTestServer
public RiTestServer()
init
public void init(java.util.Properties props)
- Specified by:
init
in interface TestServer
destroy
public void destroy()
start
public void start()
- Starts and Ri Server with the configuration file from
the properties used to create this RiTestServer.
- Specified by:
start
in interface TestServer
- Parameters:
confFileName
-
stop
public void stop()
- Specified by:
stop
in interface TestServer
getContextEnvironment
public java.util.Properties getContextEnvironment()
- Specified by:
getContextEnvironment
in interface TestServer
Copyright © 1999-2011 OpenEJB. All Rights Reserved.