View Javadoc
1   package org.codehaus.plexus.configuration.source;
2   
3   import org.codehaus.plexus.MutablePlexusContainer;
4   import org.codehaus.plexus.PlexusTestCase;
5   
6   public class DefaultConfigurationSourceTest
7       extends PlexusTestCase
8   {
9   
10      public void testBasic()
11          throws Exception
12      {
13          // we have no plexus.xml, so the container should use the "default" source,
14          // which is ContainerConfigurationSource
15  
16          ConfigurationSource cs = ( (MutablePlexusContainer) getContainer() ).getConfigurationSource();
17  
18          assertNotNull( cs );
19  
20          assertEquals( ContainerConfigurationSource.class.getName(), cs.getClass().getName() );
21      }
22  
23  }