org.mule.transport
Class MuleAbstractConnectableTestCase

java.lang.Object
  extended by org.mule.transport.MuleAbstractConnectableTestCase

public class MuleAbstractConnectableTestCase
extends java.lang.Object

This test tests class AbstractConnectable but its name starts with "Mule" because there is an exclusion rule in parent pom for test classes that have their names starting with "Abstract".


Constructor Summary
MuleAbstractConnectableTestCase()
           
 
Method Summary
 void testStartIsThreadSafe()
          This test tests that start method is thread safe and that AbstractConnectable.doStart() is always called making sure that the connectable is connected.
 void testStartRethrowsMuleExceptionCorrectly()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MuleAbstractConnectableTestCase

public MuleAbstractConnectableTestCase()
Method Detail

testStartRethrowsMuleExceptionCorrectly

public void testStartRethrowsMuleExceptionCorrectly()
                                             throws java.lang.Exception
Throws:
java.lang.Exception

testStartIsThreadSafe

public void testStartIsThreadSafe()
                           throws java.lang.Throwable
This test tests that start method is thread safe and that AbstractConnectable.doStart() is always called making sure that the connectable is connected.

To make multithreaded test easier it uses a library called MultithreadedTC. You will perhaps go and read that link if you want to understand how this test works.

Throws:
java.lang.Throwable


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