springs.tests
Class Test

java.lang.Object
  |
  +--springs.tests.Test

public class Test
extends java.lang.Object

Tests using the Springs agent platform.

Author:
Sergio Ilarri Artigas

Field Summary
static java.lang.String CODEBASE
           
static java.lang.String CONTEXT_LOG_FILENAME
           
static java.lang.String LOCAL_CONTEXT_NAME
           
static int PORT_CLASS_SERVER
           
static int PORT1
           
static java.lang.String RNS_ADDRESS
           
 
Constructor Summary
Test()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main method.
private static void test1()
          Creates a context in port PORT1 and a SpringsHelloAgent there.
private static void test2()
          Creates a context in port PORT1 and a MovingSpringsHelloAgent there.
private static void test3()
          Checks the naming service.
private static void test4()
          Checks the naming service and the dynamic proxies with one agent moving and another static: the target agent of the invokations moves.
private static void test5()
          Test 5.
private static void test6()
          Checks the naming service and the dynamic proxies with one agent moving and another static: the target agent of the invokations moves.
private static void test7()
          Tries to create two agents with the same name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORT1

public static final int PORT1
See Also:
Constant Field Values

PORT_CLASS_SERVER

public static final int PORT_CLASS_SERVER
See Also:
Constant Field Values

CODEBASE

public static final java.lang.String CODEBASE

LOCAL_CONTEXT_NAME

public static final java.lang.String LOCAL_CONTEXT_NAME
See Also:
Constant Field Values

RNS_ADDRESS

public static final java.lang.String RNS_ADDRESS
See Also:
Constant Field Values

CONTEXT_LOG_FILENAME

public static final java.lang.String CONTEXT_LOG_FILENAME
Constructor Detail

Test

public Test()
Method Detail

test1

private static void test1()
                   throws java.lang.Exception
Creates a context in port PORT1 and a SpringsHelloAgent there.

Throws:
java.lang.Exception - if error.
See Also:
Exception

test2

private static void test2()
                   throws java.lang.Exception
Creates a context in port PORT1 and a MovingSpringsHelloAgent there. This agent moves from PORT1 to another computer. So please, launch a platform there first!!!!

Throws:
java.lang.Exception - if error.
See Also:
Exception

test3

private static void test3()
                   throws java.lang.Exception
Checks the naming service.

Throws:
java.lang.Exception - if error.
See Also:
Exception

test4

private static void test4()
                   throws java.lang.Exception
Checks the naming service and the dynamic proxies with one agent moving and another static: the target agent of the invokations moves.

Throws:
java.lang.Exception - if error.
See Also:
Exception

test5

private static void test5()
                   throws java.lang.Exception
Test 5.

Throws:
java.lang.Exception - if error.
See Also:
Exception

test6

private static void test6()
                   throws java.lang.Exception
Checks the naming service and the dynamic proxies with one agent moving and another static: the target agent of the invokations moves.

Throws:
java.lang.Exception - if error.
See Also:
Exception

test7

private static void test7()
                   throws java.lang.Exception
Tries to create two agents with the same name.

Throws:
java.lang.Exception - if error.
See Also:
Exception

main

public static void main(java.lang.String[] args)
Main method.

Parameters:
args - arguments.
See Also:
String