org.apache.openejb.test
Class RiTestServer

java.lang.Object
  extended by org.apache.openejb.test.RiTestServer
All Implemented Interfaces:
TestServer

public class RiTestServer
extends 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

Field Summary
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 Summary
RiTestServer()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

protected Process server

startServerProcess

protected boolean startServerProcess

configFile

protected String configFile

serverClassName

protected String serverClassName

classPath

protected String classPath

in

protected DataInputStream in

err

protected DataInputStream err

testHomePath

protected String testHomePath

testHome

protected File testHome

TEST_HOME

public static final 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 String SERVER_CLASSPATH
See Also:
Constant Field Values

SERVER_CONFIG

public static final String SERVER_CONFIG
See Also:
Constant Field Values

START_SERVER_PROCESS

public static final String START_SERVER_PROCESS
See Also:
Constant Field Values

BAD_ENVIRONMENT_ERROR

public static final String BAD_ENVIRONMENT_ERROR
See Also:
Constant Field Values
Constructor Detail

RiTestServer

public RiTestServer()
Method Detail

init

public void init(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 Properties getContextEnvironment()
Specified by:
getContextEnvironment in interface TestServer


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.