Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jnp.test
Class TestJNPSockets  view TestJNPSockets download TestJNPSockets.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jnp.test.TestJNPSockets
All Implemented Interfaces:
junit.framework.Test

public class TestJNPSockets
extends junit.framework.TestCase

A test of RMI custom sockets with the jnp JNDI provider.

Version:
$Revision: 1.2 $

Nested Class Summary
static class TestJNPSockets.ClientSocketFactory
           
static class TestJNPSockets.ServerSocketFactory
           
 
Field Summary
(package private) static org.jnp.server.Main server
           
(package private) static int serverPort
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestJNPSockets(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
 void testAccess()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

server

static org.jnp.server.Main server

serverPort

static int serverPort
Constructor Detail

TestJNPSockets

public TestJNPSockets(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


testAccess

public void testAccess()
                throws java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception