com.eyebolt.iplib
Class TimingTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.eyebolt.iplib.TimingTest
All Implemented Interfaces:
junit.framework.Test

public class TimingTest
extends junit.framework.TestCase

Test iplib

Version:
$Revision: 1.3 $
Author:
John Gardner

Field Summary
(package private)  IPAddress address
           
(package private)  java.util.Date createDate
           
(package private)  long failed
           
(package private)  IPManager ipmanager
           
(package private)  IPKey key
           
static int LOOPBACK_LISTEN_PORT
          Description of the Field
(package private)  long messageCount
           
static java.lang.String PUBLIC_CONNECT_HOST
          Description of the Field
static int PUBLIC_CONNECT_PORT
          Description of the Field
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
TimingTest(java.lang.String name)
          Constructor for the TimingTest object
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
          Setup function, called automatically by JUnit framework
static junit.framework.Test suite()
          Assembles and returns a test suite for all the test methods of this test case.
protected  void tearDown()
          Teardown function, called automatically by JUnit framework
 void testConnect()
          Basic test of connectivity.
 void testListen()
          Test ability to listen on a socket.
 void testPacket()
          Test connectivity between this library and itself, with a content packet.
 void testSelfConnect()
          Test connectivity between this library and itself.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail, failNotEquals, failNotSame
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

PUBLIC_CONNECT_HOST

public static final java.lang.String PUBLIC_CONNECT_HOST
Description of the Field

PUBLIC_CONNECT_PORT

public static final int PUBLIC_CONNECT_PORT
Description of the Field

LOOPBACK_LISTEN_PORT

public static final int LOOPBACK_LISTEN_PORT
Description of the Field

ipmanager

IPManager ipmanager

address

IPAddress address

key

IPKey key

createDate

java.util.Date createDate

failed

long failed

messageCount

long messageCount
Constructor Detail

TimingTest

public TimingTest(java.lang.String name)
Constructor for the TimingTest object
Parameters:
name - Description of Parameter
Method Detail

testListen

public void testListen()
Test ability to listen on a socket. Listen will stay; following test relies on this one running first.

testConnect

public void testConnect()
Basic test of connectivity.

testSelfConnect

public void testSelfConnect()
Test connectivity between this library and itself. Requires first ListenTest to have been run already, so there's someone to connect to.

testPacket

public void testPacket()
Test connectivity between this library and itself, with a content packet. Requires ListenTest to have been run already, so there's someone to connect to.

suite

public static junit.framework.Test suite()
Assembles and returns a test suite for all the test methods of this test case.
Returns:
A non-null test suite.

setUp

protected void setUp()
Setup function, called automatically by JUnit framework
Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
Teardown function, called automatically by JUnit framework
Overrides:
tearDown in class junit.framework.TestCase

main

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


Copyright © 2001 Eyebolt, Inc.