o Extended tests

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@940066 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-05-01 16:04:39 +00:00
parent ab495d4a39
commit 630c059142
2 changed files with 13 additions and 1 deletions

View File

@ -59,7 +59,7 @@ public class PluginDescriptorBuilderTest
assertEquals( "plugin-description", pd.getDescription() );
assertEquals( false, pd.isIsolatedRealm() );
assertEquals( true, pd.isInheritedByDefault() );
assertEquals( 1, pd.getMojos().size() );
assertEquals( 2, pd.getMojos().size() );
assertEquals( 1, pd.getDependencies().size() );
MojoDescriptor md = pd.getMojos().get( 0 );
@ -73,6 +73,7 @@ public class PluginDescriptorBuilderTest
assertEquals( true, md.isInheritedByDefault() );
assertEquals( false, md.isOnlineRequired() );
assertEquals( true, md.isProjectRequired() );
assertEquals( false, md.isThreadSafe() );
assertEquals( "package", md.getPhase() );
assertEquals( "org.apache.maven.plugin.jar.JarMojo", md.getImplementation() );
assertEquals( "antrun", md.getComponentConfigurator() );
@ -117,6 +118,13 @@ public class PluginDescriptorBuilderTest
assertEquals( "maven-plugin-api", cd.getArtifactId() );
assertEquals( "2.0.6", cd.getVersion() );
assertEquals( "jar", cd.getType() );
md = pd.getMojos().get( 1 );
assertEquals( "war", md.getGoal() );
assertEquals( null, md.getDependencyResolutionRequired() );
assertEquals( null, md.getDependencyCollectionRequired() );
assertEquals( true, md.isThreadSafe() );
}
}

View File

@ -52,6 +52,10 @@
</requirement>
</requirements>
</mojo>
<mojo>
<goal>war</goal>
<threadSafe>true</threadSafe>
</mojo>
</mojos>
<dependencies>
<dependency>