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 OverridingConfigurationSourceTest
7       extends PlexusTestCase
8   {
9       public void testBasic()
10          throws Exception
11      {
12          // we have plexus.xml with configSource that overrides the Plexus default one, so the container 
13          // should use it instead of the "default" one
14  
15          ConfigurationSource cs = ( (MutablePlexusContainer) getContainer() ).getConfigurationSource();
16  
17          assertNotNull( cs );
18  
19          assertEquals( ADummyConfigurationSource.class.getName(), cs.getClass().getName() );
20      }
21  
22  }