Coverage Report - org.mule.tck.testmodels.mule.TestCatchAllStrategy
 
Classes in this File Line Coverage Branch Coverage Complexity
TestCatchAllStrategy
0%
0/6
N/A
1
 
 1  
 /*
 2  
  * $Id: TestCatchAllStrategy.java 7976 2007-08-21 14:26:13Z dirk.olmes $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.tck.testmodels.mule;
 12  
 
 13  
 import org.mule.umo.UMOMessage;
 14  
 import org.mule.umo.UMOSession;
 15  
 import org.mule.umo.endpoint.UMOEndpoint;
 16  
 import org.mule.umo.routing.RoutingException;
 17  
 import org.mule.umo.routing.UMORouterCatchAllStrategy;
 18  
 import org.mule.util.StringMessageUtils;
 19  
 
 20  0
 public class TestCatchAllStrategy implements UMORouterCatchAllStrategy
 21  
 {
 22  
     private UMOEndpoint endpoint;
 23  
 
 24  
     public void setEndpoint(UMOEndpoint endpoint)
 25  
     {
 26  0
         this.endpoint = endpoint;
 27  0
     }
 28  
 
 29  
     public UMOEndpoint getEndpoint()
 30  
     {
 31  0
         return endpoint;
 32  
     }
 33  
 
 34  
     public UMOMessage catchMessage(UMOMessage message, UMOSession session, boolean synchronous)
 35  
         throws RoutingException
 36  
     {
 37  0
         System.out.println(StringMessageUtils.getBoilerPlate("Caught an event in the router!", '*', 40));
 38  0
         return null;
 39  
     }
 40  
 }