|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--com.eyebolt.iplib.IPLibTest
Test iplib
Inner Class Summary | |
(package private) class |
IPLibTest.Listener
|
(package private) class |
IPLibTest.Replyer
|
(package private) class |
IPLibTest.TopCallback
|
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 | |
IPLibTest(java.lang.String name)
Constructor for the IPLibTest object |
Method Summary | |
long |
connect(java.lang.String host,
int port)
Description of the Method |
long |
listen(int port)
Description of the Method |
static void |
main(java.lang.String[] args)
|
void |
sendBlockingMessage(java.io.PrintStream out)
Description of the Method |
void |
sendMessage(java.io.PrintStream out)
Description of the Method |
protected void |
setUp()
Setup function, called automatically by JUnit framework |
private static void |
showBytes(java.io.PrintStream out,
byte[] buf)
|
void |
showResults(java.io.PrintStream out)
Description of the Method |
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 |
testBlockingPacketStream()
Test connectivity between this library and itself, with a content packet. |
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 |
|
Field Detail |
public static final java.lang.String PUBLIC_CONNECT_HOST
public static final int PUBLIC_CONNECT_PORT
public static final int LOOPBACK_LISTEN_PORT
IPManager ipmanager
IPAddress address
IPKey key
java.util.Date createDate
long failed
long messageCount
Constructor Detail |
public IPLibTest(java.lang.String name)
name
- Description of ParameterMethod Detail |
public void testConnect()
public void testListen()
public void testSelfConnect()
public void testPacket()
public void testBlockingPacketStream()
public long connect(java.lang.String host, int port)
host
- Description of Parameterport
- Description of Parameterpublic void sendMessage(java.io.PrintStream out)
out
- Description of Parameterpublic void sendBlockingMessage(java.io.PrintStream out)
out
- Description of Parameterpublic long listen(int port)
port
- Description of Parameterpublic void showResults(java.io.PrintStream out)
out
- Description of Parameterpublic static junit.framework.Test suite()
protected void setUp()
setUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
in class junit.framework.TestCase
public static void main(java.lang.String[] args)
private static void showBytes(java.io.PrintStream out, byte[] buf)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |