com.veraxsystems.icmp.ping
Class PingTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.veraxsystems.icmp.ping.PingTest
All Implemented Interfaces:
junit.framework.Test

public class PingTest
extends junit.framework.TestCase

Unit test Ping class


Constructor Summary
PingTest(java.lang.String testName)
          Create the test case
 
Method Summary
static junit.framework.Test suite()
           
 void testPingBlocking()
          Test Ping echo requests using predefined set of hosts.
 void testPingBlockingDefault()
          Test Ping echo requests using predefined set of hosts.
 void testPingEcho()
          Test Ping echo request.
 void testPingEchoMulti()
          Test Ping echo requests using predefined set of hosts.
 void testPingEchoMultiDefault()
          Test Ping echo requests using predefined set of hosts.
 void testPingInit()
          Test Ping initialization/release operations.
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PingTest

public PingTest(java.lang.String testName)
Create the test case

Parameters:
testName - name of the test case
Method Detail

suite

public static junit.framework.Test suite()
Returns:
the suite of tests being tested

testPingInit

public void testPingInit()
Test Ping initialization/release operations.


testPingEcho

public void testPingEcho()
Test Ping echo request. Test waits for response 1 second asuming it is enoush for ping.


testPingEchoMulti

public void testPingEchoMulti()
Test Ping echo requests using predefined set of hosts.


testPingEchoMultiDefault

public void testPingEchoMultiDefault()
Test Ping echo requests using predefined set of hosts.


testPingBlocking

public void testPingBlocking()
Test Ping echo requests using predefined set of hosts.


testPingBlockingDefault

public void testPingBlockingDefault()
Test Ping echo requests using predefined set of hosts.