Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mule.test.tools
Class TestingMule  view TestingMule download TestingMule.java

java.lang.Object
  extended byorg.mule.umo.impl.SimpleMuleChain
      extended byorg.mule.umo.impl.MuleUMO
          extended byorg.mule.test.tools.TestingMule
All Implemented Interfaces:
org.mule.umo.UMOChain, org.mule.umo.UMOEventListener, org.mule.umo.UniversalMessageObject

public class TestingMule
extends org.mule.umo.impl.MuleUMO

TestingMule is a Test harness Mule implementation which can be used to ease the development of Unit test cases. This Mule can be instanciated from a constructor, that can be manipuated outside of the mule manager

Version:
$Revision: 1.3 $

Field Summary
(package private)  TestMuleCallback callback
           
 
Fields inherited from class org.mule.umo.impl.MuleUMO
descriptor, log, manager
 
Fields inherited from class org.mule.umo.impl.SimpleMuleChain
 
Constructor Summary
TestingMule(TestMuleCallback callback)
           
 
Method Summary
 java.lang.Class getLoggingClass()
           
 void initialise(java.util.Properties props)
          Mule UMO extending this class can do all their initialisation in this method.
 void onEvent(org.mule.umo.UMOEvent event)
          Passes the event to the listener
 
Methods inherited from class org.mule.umo.impl.MuleUMO
createOutboundEvent, createOutboundEvent, createOutboundEvent, createOutboundEvent, destroy, dispatchEvent, dispatchEvent, dispatchEvent, getDescriptor, getInboundProvider, getManager, getName, getOutboundProvider, getSession, handleException, init, isStarted, isStopped, receiveEvent, receiveEvent, receiveEvent, resume, sendEvent, sendEvent, sendEvent, start, startProcessing, stop, stopProcessing, suspend, toString
 
Methods inherited from class org.mule.umo.impl.SimpleMuleChain
breakChain, doChain, doSyncChain, getFirst, getLast, getNext, getOwner, getPrevious, isBreakChain, isSendbound, setName, setNext, setOwner, setPrevious, startChain, startSyncChain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.umo.UMOChain
breakChain, doChain, doSyncChain, getFirst, getLast, getNext, getOwner, getPrevious, isBreakChain, setName, setNext, setOwner, setPrevious, startChain, startSyncChain
 

Field Detail

callback

TestMuleCallback callback
Constructor Detail

TestingMule

public TestingMule(TestMuleCallback callback)
            throws org.mule.umo.UMOException
Method Detail

initialise

public void initialise(java.util.Properties props)
                throws org.mule.umo.UMOException
Description copied from interface: org.mule.umo.UMOChain
Mule UMO extending this class can do all their initialisation in this method.


onEvent

public void onEvent(org.mule.umo.UMOEvent event)
             throws org.mule.umo.UMOException
Description copied from interface: org.mule.umo.UMOEventListener
Passes the event to the listener


getLoggingClass

public java.lang.Class getLoggingClass()