org.mule.test.firewall
Class FirewallTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.mule.test.firewall.FirewallTestCase
- All Implemented Interfaces:
- Test
- public class FirewallTestCase
- extends TestCase
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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, failNotEquals, failNotSame, failSame |
LOCALHOST
public static final String LOCALHOST
- See Also:
- Constant Field Values
LOCALADDR
public static final String LOCALADDR
- See Also:
- Constant Field Values
TEST_COUNT
public static final int TEST_COUNT
- See Also:
- Constant Field Values
logger
protected final Log logger
FirewallTestCase
public FirewallTestCase()
testLoopback
public void testLoopback()
throws Exception
- Throws:
Exception
testLocalHost
public void testLocalHost()
throws Exception
- Throws:
Exception
testCanonicalHost
public void testCanonicalHost()
throws Exception
- Throws:
Exception
consistentAddress
protected void consistentAddress(String name,
boolean canonical)
throws UnknownHostException
- Throws:
UnknownHostException
name
protected String name(InetAddress address,
boolean canonical)
testLocalhostTcp
public void testLocalhostTcp()
throws Exception
- Throws:
Exception
testHostnameTcp
public void testHostnameTcp()
throws Exception
- Throws:
Exception
testLocalhostUdp
public void testLocalhostUdp()
throws Exception
- Throws:
Exception
testHostnameUdp
public void testHostnameUdp()
throws Exception
- Throws:
Exception
doTestTcp
protected void doTestTcp(InetAddress address,
int port)
throws Exception
- Throws:
Exception
doTestUdp
protected void doTestUdp(InetAddress address,
int port)
throws Exception
- Throws:
Exception
openTcpClient
protected Socket openTcpClient(InetAddress address,
int port)
throws IOException
- Throws:
IOException
openTcpServer
protected ServerSocket openTcpServer(InetAddress address,
int port)
throws IOException
- Throws:
IOException
openUdpServer
protected DatagramSocket openUdpServer(InetAddress address,
int port)
throws IOException
- Throws:
IOException
openUdpClient
protected DatagramSocket openUdpClient()
throws IOException
- Throws:
IOException
addressToString
protected String addressToString(InetAddress address,
int port)
addressToString
protected String addressToString(InetAddress address)
randomPrivatePort
protected int randomPrivatePort()
randomPort
protected int randomPort(int lo,
int hi)
- Parameters:
lo
- hi
-
- Returns:
- A number between lo and hi (inclusive)
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.