org.mule.providers.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.providers.udp.functional.UdpConnectorFunctionalTestCase
All Implemented Interfaces:
Test, org.mule.tck.TestCaseWatchdogTimeoutHandler

public class UdpConnectorFunctionalTestCase
extends org.mule.tck.FunctionalTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase
org.mule.tck.AbstractMuleTestCase.TestInfo
 
Field Summary
static long BETWEEN_BATCH_PAUSE
           
static int MAX_NUMBER_OF_BATCHES
           
static long MAX_PAUSE_PERIOD
           
static String MESSAGE
           
static long MIN_PAUSE_PERIOD
           
static int TOTAL_MESSAGE_COUNT
           
 
Fields inherited from class org.mule.tck.FunctionalTestCase
DEFAULT_BUILDER_CLASS
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
IGNORED_DOT_MULE_DIRS, logger
 
Constructor Summary
UdpConnectorFunctionalTestCase()
           
 
Method Summary
protected  boolean doTestSome(int numberOfMessages, int burst)
           
protected  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
doFunctionalTearDown, doPostFunctionalSetUp, doPreFunctionalSetUp, doSetUp, doTearDown, getBuilder, setupManager, suitePreSetUp
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
createTestInfo, createWatchdog, disposeManager, getDefaultModel, getManager, getName, getTestComponent, getTestConnector, getTestDescriptor, getTestEndpoint, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInfo, getTestManager, getTestSession, getTestTransformer, handleTimeout, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isDisposeManagerPerSuite, isExcluded, isOffline, run, runBare, setDisposeManagerPerSuite, setUp, suitePostSetUp, suitePostTearDown, suitePreTearDown, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MESSAGE

public static final 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 String getConfigResources()
Specified by:
getConfigResources in class org.mule.tck.FunctionalTestCase

testMany

public void testMany()
              throws 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:
Exception

doTestSome

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


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.