View Javadoc
1   package org.codehaus.plexus.configuration.io;
2   
3   import java.io.StringReader;
4   
5   import junit.framework.TestCase;
6   
7   import org.codehaus.plexus.configuration.ConfigurationTestHelper;
8   import org.codehaus.plexus.configuration.PlexusConfiguration;
9   
10  public class XmlPlexusConfigurationReaderTest
11      extends TestCase
12  {
13      public void testRead()
14          throws Exception
15      {
16          StringReader sr = new StringReader( ConfigurationTestHelper.getXmlConfiguration() );
17  
18          XmlPlexusConfigurationReader reader = new XmlPlexusConfigurationReader();
19  
20          PlexusConfiguration c = reader.read( sr );
21  
22          ConfigurationTestHelper.testConfiguration( c );
23      }
24  
25  }