org.mule.transport.udp.functional
Class UdpConnectorFunctionalTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mule.tck.AbstractMuleTestCase
              extended by org.mule.tck.FunctionalTestCase
                  extended by org.mule.transport.udp.functional.UdpConnectorFunctionalTestCase
All Implemented Interfaces:
junit.framework.Test, TestCaseWatchdogTimeoutHandler

public class UdpConnectorFunctionalTestCase
extends FunctionalTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase
AbstractMuleTestCase.TestInfo
 
Field Summary
static long BETWEEN_BATCH_PAUSE
           
static int MAX_NUMBER_OF_BATCHES
           
static long MAX_PAUSE_PERIOD
           
static java.lang.String MESSAGE
           
static long MIN_PAUSE_PERIOD
           
static int TOTAL_MESSAGE_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, logger, muleContext, numPorts, ports, PROPERTY_MULE_TEST_TIMEOUT, RECEIVE_TIMEOUT, TEST_MESSAGE, testTimeoutSecs
 
Constructor Summary
UdpConnectorFunctionalTestCase()
           
 
Method Summary
protected  boolean doTestSome(int numberOfMessages, int burst)
           
protected  java.lang.String getConfigResources()
           
 void testMany()
          We try progressively smaller batches to see if there are issues with internal buffers.
 
Methods inherited from class org.mule.tck.FunctionalTestCase
getBuilder, getComponent, getComponent, getFunctionalTestComponent, loadResource, loadResourceAsString
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
addBuilders, checkPorts, configureMuleContext, createMuleContext, createObject, createObject, createTestInfo, createWatchdog, disposeManager, doSetUp, doTearDown, findFreePorts, 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
 

Field Detail

MESSAGE

public static final java.lang.String MESSAGE
See Also:
Constant Field Values

TOTAL_MESSAGE_COUNT

public static final int TOTAL_MESSAGE_COUNT
See Also:
Constant Field Values

MAX_NUMBER_OF_BATCHES

public static final int MAX_NUMBER_OF_BATCHES
See Also:
Constant Field Values

MAX_PAUSE_PERIOD

public static final long MAX_PAUSE_PERIOD
See Also:
Constant Field Values

MIN_PAUSE_PERIOD

public static final long MIN_PAUSE_PERIOD
See Also:
Constant Field Values

BETWEEN_BATCH_PAUSE

public static final long BETWEEN_BATCH_PAUSE
See Also:
Constant Field Values
Constructor Detail

UdpConnectorFunctionalTestCase

public UdpConnectorFunctionalTestCase()
Method Detail

getConfigResources

protected java.lang.String getConfigResources()
Specified by:
getConfigResources in class FunctionalTestCase

testMany

public void testMany()
              throws java.lang.Exception
We try progressively smaller batches to see if there are issues with internal buffers. If we don't get 100% success eventually, we fail.

Throws:
java.lang.Exception

doTestSome

protected boolean doTestSome(int numberOfMessages,
                             int burst)
                      throws java.lang.Exception
Parameters:
numberOfMessages - Total number of tests
burst - Number of mesages to send between wait periods
Returns:
true if all messages received
Throws:
java.lang.Exception


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.