|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.mule.tck.AbstractMuleTestCase
org.mule.test.firewall.FirewallTestCase
public class FirewallTestCase
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase |
---|
AbstractMuleTestCase.TestInfo |
Field Summary | |
---|---|
static String |
LOCALADDR
|
static String |
LOCALHOST
|
protected Log |
logger
|
static int |
TEST_COUNT
|
Fields inherited from class org.mule.tck.AbstractMuleTestCase |
---|
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, DEFAULT_MULE_TEST_TIMEOUT_SECS, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, numPorts, ports, PROPERTY_MULE_TEST_TIMEOUT, RECEIVE_TIMEOUT, TEST_MESSAGE, testTimeoutSecs |
Constructor Summary | |
---|---|
FirewallTestCase()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, runTest, 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String LOCALHOST
public static final String LOCALADDR
public static final int TEST_COUNT
protected final Log logger
Constructor Detail |
---|
public FirewallTestCase()
Method Detail |
---|
public void testLoopback() throws Exception
Exception
public void testLocalHost() throws Exception
Exception
public void testCanonicalHost() throws Exception
Exception
protected void consistentAddress(String name, boolean canonical) throws UnknownHostException
UnknownHostException
protected String name(InetAddress address, boolean canonical)
public void testLocalhostTcp() throws Exception
Exception
public void testHostnameTcp() throws Exception
Exception
public void testLocalhostUdp() throws Exception
Exception
public void testHostnameUdp() throws Exception
Exception
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |