public class FirewallTestCase extends AbstractMuleTestCase
Modifier and Type | Field and Description |
---|---|
static String |
LOCALADDR |
static String |
LOCALHOST |
protected Log |
logger |
static int |
TEST_COUNT |
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, name, TEST_TIMEOUT_SYSTEM_PROPERTY, TESTING_MODE_PROPERTY_NAME
Constructor and Description |
---|
FirewallTestCase() |
Modifier and Type | Method and Description |
---|---|
protected String |
addressToString(InetAddress address) |
protected String |
addressToString(InetAddress address,
int port) |
protected void |
consistentAddress(String name,
boolean canonical) |
protected void |
doTestTcp(InetAddress address,
int port) |
protected void |
doTestUdp(InetAddress address,
int port) |
protected String |
name(InetAddress address,
boolean canonical) |
protected Socket |
openTcpClient(InetAddress address,
int port) |
protected ServerSocket |
openTcpServer(InetAddress address,
int port) |
protected DatagramSocket |
openUdpClient() |
protected DatagramSocket |
openUdpServer(InetAddress address,
int port) |
protected int |
randomPort(int lo,
int hi) |
protected int |
randomPrivatePort() |
void |
testCanonicalHost() |
void |
testHostnameTcp() |
void |
testHostnameUdp() |
void |
testLocalHost() |
void |
testLocalhostTcp() |
void |
testLocalhostUdp() |
void |
testLoopback() |
clearExcludedFlag, clearRequestContext, clearTestCaseName, createTestTimeoutRule, dumpFilteredThreadsInTest, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile, takeTestCaseName
public static final String LOCALHOST
public static final String LOCALADDR
public static final int TEST_COUNT
protected final Log logger
protected void consistentAddress(String name, boolean canonical) throws UnknownHostException
UnknownHostException
protected String name(InetAddress address, boolean canonical)
protected void doTestTcp(InetAddress address, int port) throws Exception
Exception
protected void doTestUdp(InetAddress address, int port) throws Exception
Exception
protected Socket openTcpClient(InetAddress address, int port) throws IOException
IOException
protected ServerSocket openTcpServer(InetAddress address, int port) throws IOException
IOException
protected DatagramSocket openUdpServer(InetAddress address, int port) throws IOException
IOException
protected DatagramSocket openUdpClient() throws IOException
IOException
protected String addressToString(InetAddress address, int port)
protected String addressToString(InetAddress address)
protected int randomPrivatePort()
protected int randomPort(int lo, int hi)
lo
- hi
- Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.