org.mule.test.firewall
Class FirewallTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.mule.tck.AbstractMuleTestCase
org.mule.test.firewall.FirewallTestCase
- All Implemented Interfaces:
- junit.framework.Test, TestCaseWatchdogTimeoutHandler
public class FirewallTestCase
- extends AbstractMuleTestCase
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 |
Methods inherited from class org.mule.tck.AbstractMuleTestCase |
addBuilders, checkPorts, configureMuleContext, createMuleContext, createObject, createObject, createTestInfo, createWatchdog, disposeManager, doSetUp, doTearDown, findFreePorts, getBuilder, getConfigurationResources, getPorts, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEvent, getTestInboundEvent, getTestInboundEvent, getTestInfo, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTimeoutSecs, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, giveTheTestSomeTimeToCleanUpAndThenKillIt, handleTimeout, initialiseObject, initTestTimeoutSecs, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isDisposeManagerPerSuite, isExcluded, isGracefulShutdown, isOffline, isPortFree, isStartContext, registerTestMethod, run, runBare, setDisposeManagerPerSuite, setFailOnTimeout, setName, setStartContext, setUp, suitePostTearDown, suitePreSetUp, tearDown |
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 |
LOCALHOST
public static final java.lang.String LOCALHOST
- See Also:
- Constant Field Values
LOCALADDR
public static final java.lang.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 java.lang.Exception
- Throws:
java.lang.Exception
testLocalHost
public void testLocalHost()
throws java.lang.Exception
- Throws:
java.lang.Exception
testCanonicalHost
public void testCanonicalHost()
throws java.lang.Exception
- Throws:
java.lang.Exception
consistentAddress
protected void consistentAddress(java.lang.String name,
boolean canonical)
throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
name
protected java.lang.String name(java.net.InetAddress address,
boolean canonical)
testLocalhostTcp
public void testLocalhostTcp()
throws java.lang.Exception
- Throws:
java.lang.Exception
testHostnameTcp
public void testHostnameTcp()
throws java.lang.Exception
- Throws:
java.lang.Exception
testLocalhostUdp
public void testLocalhostUdp()
throws java.lang.Exception
- Throws:
java.lang.Exception
testHostnameUdp
public void testHostnameUdp()
throws java.lang.Exception
- Throws:
java.lang.Exception
doTestTcp
protected void doTestTcp(java.net.InetAddress address,
int port)
throws java.lang.Exception
- Throws:
java.lang.Exception
doTestUdp
protected void doTestUdp(java.net.InetAddress address,
int port)
throws java.lang.Exception
- Throws:
java.lang.Exception
openTcpClient
protected java.net.Socket openTcpClient(java.net.InetAddress address,
int port)
throws java.io.IOException
- Throws:
java.io.IOException
openTcpServer
protected java.net.ServerSocket openTcpServer(java.net.InetAddress address,
int port)
throws java.io.IOException
- Throws:
java.io.IOException
openUdpServer
protected java.net.DatagramSocket openUdpServer(java.net.InetAddress address,
int port)
throws java.io.IOException
- Throws:
java.io.IOException
openUdpClient
protected java.net.DatagramSocket openUdpClient()
throws java.io.IOException
- Throws:
java.io.IOException
addressToString
protected java.lang.String addressToString(java.net.InetAddress address,
int port)
addressToString
protected java.lang.String addressToString(java.net.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-2010 MuleSoft, Inc.. All Rights Reserved.