mirror of https://github.com/apache/maven.git
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:
parent
ab495d4a39
commit
630c059142
|
@ -59,7 +59,7 @@ public class PluginDescriptorBuilderTest
|
||||||
assertEquals( "plugin-description", pd.getDescription() );
|
assertEquals( "plugin-description", pd.getDescription() );
|
||||||
assertEquals( false, pd.isIsolatedRealm() );
|
assertEquals( false, pd.isIsolatedRealm() );
|
||||||
assertEquals( true, pd.isInheritedByDefault() );
|
assertEquals( true, pd.isInheritedByDefault() );
|
||||||
assertEquals( 1, pd.getMojos().size() );
|
assertEquals( 2, pd.getMojos().size() );
|
||||||
assertEquals( 1, pd.getDependencies().size() );
|
assertEquals( 1, pd.getDependencies().size() );
|
||||||
|
|
||||||
MojoDescriptor md = pd.getMojos().get( 0 );
|
MojoDescriptor md = pd.getMojos().get( 0 );
|
||||||
|
@ -73,6 +73,7 @@ public class PluginDescriptorBuilderTest
|
||||||
assertEquals( true, md.isInheritedByDefault() );
|
assertEquals( true, md.isInheritedByDefault() );
|
||||||
assertEquals( false, md.isOnlineRequired() );
|
assertEquals( false, md.isOnlineRequired() );
|
||||||
assertEquals( true, md.isProjectRequired() );
|
assertEquals( true, md.isProjectRequired() );
|
||||||
|
assertEquals( false, md.isThreadSafe() );
|
||||||
assertEquals( "package", md.getPhase() );
|
assertEquals( "package", md.getPhase() );
|
||||||
assertEquals( "org.apache.maven.plugin.jar.JarMojo", md.getImplementation() );
|
assertEquals( "org.apache.maven.plugin.jar.JarMojo", md.getImplementation() );
|
||||||
assertEquals( "antrun", md.getComponentConfigurator() );
|
assertEquals( "antrun", md.getComponentConfigurator() );
|
||||||
|
@ -117,6 +118,13 @@ public class PluginDescriptorBuilderTest
|
||||||
assertEquals( "maven-plugin-api", cd.getArtifactId() );
|
assertEquals( "maven-plugin-api", cd.getArtifactId() );
|
||||||
assertEquals( "2.0.6", cd.getVersion() );
|
assertEquals( "2.0.6", cd.getVersion() );
|
||||||
assertEquals( "jar", cd.getType() );
|
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() );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,6 +52,10 @@
|
||||||
</requirement>
|
</requirement>
|
||||||
</requirements>
|
</requirements>
|
||||||
</mojo>
|
</mojo>
|
||||||
|
<mojo>
|
||||||
|
<goal>war</goal>
|
||||||
|
<threadSafe>true</threadSafe>
|
||||||
|
</mojo>
|
||||||
</mojos>
|
</mojos>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
Loading…
Reference in New Issue