extends TestCase
{
public void testLifecycleReader()
throws IOException, XmlPullParserException
{
LifecycleMappingsXpp3Reader reader = new LifecycleMappingsXpp3Reader();
LifecycleConfiguration config = reader.read( new InputStreamReader( getClass().getResourceAsStream( "/lifecycle.xml" ) ) );
assertEquals( "check number of lifecycles", 1, config.getLifecycles().size() );
Lifecycle l = (Lifecycle) config.getLifecycles().iterator().next();
assertEquals( "check id", "clover", l.getId() );
assertEquals( "check number of phases", 1, l.getPhases().size() );
Phase p = (Phase) l.getPhases().iterator().next();