Coverage Report - org.codehaus.plexus.configuration.source.ContainerConfigurationSource
 
Classes in this File Line Coverage Branch Coverage Complexity
ContainerConfigurationSource
75 %
3/4
50 %
1/2
3
 
 1  
 package org.codehaus.plexus.configuration.source;
 2  
 
 3  
 import org.codehaus.plexus.component.repository.ComponentDescriptor;
 4  
 import org.codehaus.plexus.configuration.PlexusConfiguration;
 5  
 
 6  
 /** @author Jason van Zyl */
 7  61
 public class ContainerConfigurationSource
 8  
     implements ConfigurationSource
 9  
 {
 10  
     public PlexusConfiguration getConfiguration( ComponentDescriptor componentDescriptor )
 11  
     {
 12  1
         if ( componentDescriptor.hasConfiguration() )
 13  
         {
 14  1
             return componentDescriptor.getConfiguration();
 15  
         }
 16  
 
 17  0
         return null;       
 18  
     }
 19  
 }