| org.apache.harmony.rmi.RMITestBase org.apache.harmony.rmi.ConnectionTest
ConnectionTest | public class ConnectionTest extends RMITestBase (Code) | | Unit test for RMI.
author: Mikhail A. Markov, Vasily Zakharov version: $Revision: 1.1.2.4 $ |
Method Summary | |
public static void | main(String args) Starts the testing from the command line.
If first command line parameter exists, the test server is started
instead. | public static Test | suite() Returns test suite for this class. | public void | testDirectHTTP_SingleVM() Tests direct HTTP RMI data exchange
with both server and client run on a single VM. | public void | testDirectSocket_SingleVM() Tests direct socket RMI data exchange. | public void | testProxyCGI_SingleVM() Tests proxy HTTP-CGI RMI data exchange
with both server and client run on a single VM. | public void | testProxyHTTP_SingleVM() Tests proxy HTTP RMI data exchange
with both server and client run on a single VM. | public void | testSingleVM(int config, boolean endorsed) Tests RMI data exchange in one separate VM. |
ConnectionTest | public ConnectionTest()(Code) | | No-arg constructor to enable serialization.
|
ConnectionTest | public ConnectionTest(String name)(Code) | | Constructs this test case with the given name.
Parameters: name - Name for this test case. |
main | public static void main(String args)(Code) | | Starts the testing from the command line.
If first command line parameter exists, the test server is started
instead. The parameter value is used as a suffix of the respective
setEnvironmentXXX method that is called to setup the environment
configuration.
Parameters: args - Command line parameters. |
suite | public static Test suite()(Code) | | Returns test suite for this class.
Test suite for this class. |
testDirectHTTP_SingleVM | public void testDirectHTTP_SingleVM() throws Exception(Code) | | Tests direct HTTP RMI data exchange
with both server and client run on a single VM.
throws: Exception - If some error occurs. |
testDirectSocket_SingleVM | public void testDirectSocket_SingleVM() throws Exception(Code) | | Tests direct socket RMI data exchange.
with both server and client run on a single VM.
throws: Exception - If some error occurs. |
testProxyCGI_SingleVM | public void testProxyCGI_SingleVM() throws Exception(Code) | | Tests proxy HTTP-CGI RMI data exchange
with both server and client run on a single VM.
throws: Exception - If some error occurs. |
testProxyHTTP_SingleVM | public void testProxyHTTP_SingleVM() throws Exception(Code) | | Tests proxy HTTP RMI data exchange
with both server and client run on a single VM.
throws: Exception - If some error occurs. |
testSingleVM | public void testSingleVM(int config, boolean endorsed) throws Exception(Code) | | Tests RMI data exchange in one separate VM.
Parameters: config - Configuration to set environment for. Parameters: endorsed - If endorsedDirs and bootClassPathshould be propagated to test VM. throws: Exception - If some error occurs. |
Methods inherited from org.apache.harmony.rmi.RMITestBase | protected static void abort(int exitCode)(Code)(Java Doc) protected static void abort()(Code)(Java Doc) protected static boolean checkProxy()(Code)(Java Doc) protected static boolean checkProxy(String testName)(Code)(Java Doc) protected static boolean checkSocket(String host, int port, int timeout)(Code)(Java Doc) protected static void printArray(Object[] array)(Code)(Java Doc) protected static void setEnvironment(boolean disableHttp, boolean eagerHttpFallback, boolean disableDirectSocket, boolean enableDirectHTTP, boolean disablePlainHTTP, boolean useProxy, long connectionTimeout, boolean logging)(Code)(Java Doc) protected static void setEnvironmentForConfig(int config)(Code)(Java Doc) protected static SubProcess startProcess(String className, String id, int config, boolean endorsed) throws Exception(Code)(Java Doc) protected void unexportObjects() throws Exception(Code)(Java Doc)
|
|
|