/** MNG-4415 */
public void testPluginOrderAfterMergingWithInheritedPlugins()
throws Exception
{
PomTestWrapper pom = buildPom( "plugin-inheritance-merge-order/sub" );
List<String> expected = new ArrayList<String>();
expected.add( "maven-it-plugin-error" );
expected.add( "maven-it-plugin-configuration" );
expected.add( "maven-it-plugin-dependency-resolution" );
expected.add( "maven-it-plugin-packaging" );
expected.add( "maven-it-plugin-log-file" );
expected.add( "maven-it-plugin-expression" );
expected.add( "maven-it-plugin-fork" );
expected.add( "maven-it-plugin-touch" );
List<String> actual = new ArrayList<String>();
for ( Plugin plugin : (List<Plugin>) pom.getValue( "build/plugins" ) )
{
actual.add( plugin.getArtifactId() );
}
actual.retainAll( expected );