Coverage Report - org.mule.component.simple.NullComponent
 
Classes in this File Line Coverage Branch Coverage Complexity
NullComponent
0%
0/2
N/A
2
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.component.simple;
 8  
 
 9  
 import org.mule.api.MuleEventContext;
 10  
 import org.mule.api.lifecycle.Callable;
 11  
 
 12  
 /**
 13  
  * <code>NullComponent</code> is a service that is used as a placeholder. This
 14  
  * implementation will throw an exception if a message is received for it.
 15  
  */
 16  0
 public class NullComponent implements Callable
 17  
 {
 18  
 
 19  
     public Object onCall(MuleEventContext context) throws Exception
 20  
     {
 21  0
         throw new UnsupportedOperationException("This service cannot receive messages. Service is: "
 22  
                                                 + context.getFlowConstruct().getName());
 23  
     }
 24  
 
 25  
 }