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 extends PlexusTestCase {
7   
8       public void testBasic() throws Exception {
9           // we have no plexus.xml, so the container should use the "default" source,
10          // which is ContainerConfigurationSource
11  
12          ConfigurationSource cs = ((MutablePlexusContainer) getContainer()).getConfigurationSource();
13  
14          assertNotNull(cs);
15  
16          assertEquals(ContainerConfigurationSource.class.getName(), cs.getClass().getName());
17      }
18  }