Clover coverage report - PicoContainer - 1.0-alpha-2
Coverage timestamp: Thu Jul 10 2003 10:40:43 BST
file stats: LOC: 24   Methods: 1
NCLOC: 14   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
ComponentParameter.java 100% 100% 100% 100%
coverage
 1   
 package picocontainer.defaults;
 2   
 
 3   
 import picocontainer.PicoContainer;
 4   
 import picocontainer.PicoInstantiationException;
 5   
 import picocontainer.PicoIntrospectionException;
 6   
 
 7   
 /**
 8   
  * @author Jon Tirsen (tirsen@codehaus.org)
 9   
  * @version $Revision: 1.3 $
 10   
  */
 11   
 public class ComponentParameter implements Parameter {
 12  46
     public Object resolve(PicoContainer picoContainer, ComponentSpecification compSpec, Class requestedType)
 13   
             throws PicoInstantiationException, PicoIntrospectionException {
 14   
         // TODO figure out a way to remove this ugly cast?
 15  46
         Object value = ((DefaultPicoContainer) picoContainer).createComponent(requestedType);
 16   
 
 17  44
         if (value == null) {
 18  1
             throw new UnsatisfiedDependencyInstantiationException(compSpec.getComponentImplementation(), requestedType);
 19   
         }
 20   
 
 21  43
         return value;
 22   
     }
 23   
 }
 24