org.mule.test.firewall
Class FirewallTestCase
java.lang.Object
org.mule.tck.junit4.AbstractMuleTestCase
org.mule.test.firewall.FirewallTestCase
public class FirewallTestCase
- extends AbstractMuleTestCase
Methods inherited from class org.mule.tck.junit4.AbstractMuleTestCase |
clearExcludedFlag, clearRequestContext, createTestTimeoutRule, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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-2012 MuleSoft, Inc.. All Rights Reserved.