mirror of https://github.com/apache/maven.git
o Extended IT to check dependency with classifier, too
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@784355 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ed2a382640
commit
41f63c2abf
|
@ -81,21 +81,24 @@ public class MavenIT0142DirectDependencyScopesTest
|
|||
List runtimeArtifacts = verifier.loadLines( "target/runtime-artifacts.txt", "UTF-8" );
|
||||
assertTrue( runtimeArtifacts.toString(), runtimeArtifacts.contains( "org.apache.maven.its.it0142:compile:jar:0.1" ) );
|
||||
assertTrue( runtimeArtifacts.toString(), runtimeArtifacts.contains( "org.apache.maven.its.it0142:runtime:jar:0.1" ) );
|
||||
assertEquals( 2, runtimeArtifacts.size() );
|
||||
assertTrue( runtimeArtifacts.toString(), runtimeArtifacts.contains( "org.apache.maven.its.it0142:runtime:jar:retro:0.1" ) );
|
||||
assertEquals( 3, runtimeArtifacts.size() );
|
||||
|
||||
List runtimeClassPath = verifier.loadLines( "target/runtime-cp.txt", "UTF-8" );
|
||||
assertTrue( runtimeClassPath.toString(), runtimeClassPath.contains( "classes" ) );
|
||||
assertTrue( runtimeClassPath.toString(), runtimeClassPath.contains( "compile-0.1.jar" ) );
|
||||
assertTrue( runtimeClassPath.toString(), runtimeClassPath.contains( "runtime-0.1.jar" ) );
|
||||
assertEquals( 3, runtimeClassPath.size() );
|
||||
assertTrue( runtimeClassPath.toString(), runtimeClassPath.contains( "runtime-0.1-retro.jar" ) );
|
||||
assertEquals( 4, runtimeClassPath.size() );
|
||||
|
||||
List testArtifacts = verifier.loadLines( "target/test-artifacts.txt", "UTF-8" );
|
||||
assertTrue( testArtifacts.toString(), testArtifacts.contains( "org.apache.maven.its.it0142:system:jar:0.1" ) );
|
||||
assertTrue( testArtifacts.toString(), testArtifacts.contains( "org.apache.maven.its.it0142:provided:jar:0.1" ) );
|
||||
assertTrue( testArtifacts.toString(), testArtifacts.contains( "org.apache.maven.its.it0142:compile:jar:0.1" ) );
|
||||
assertTrue( testArtifacts.toString(), testArtifacts.contains( "org.apache.maven.its.it0142:runtime:jar:0.1" ) );
|
||||
assertTrue( testArtifacts.toString(), testArtifacts.contains( "org.apache.maven.its.it0142:runtime:jar:retro:0.1" ) );
|
||||
assertTrue( testArtifacts.toString(), testArtifacts.contains( "org.apache.maven.its.it0142:test:jar:0.1" ) );
|
||||
assertEquals( 5, testArtifacts.size() );
|
||||
assertEquals( 6, testArtifacts.size() );
|
||||
|
||||
List testClassPath = verifier.loadLines( "target/test-cp.txt", "UTF-8" );
|
||||
assertTrue( testClassPath.toString(), testClassPath.contains( "classes" ) );
|
||||
|
@ -104,8 +107,9 @@ public class MavenIT0142DirectDependencyScopesTest
|
|||
assertTrue( testClassPath.toString(), testClassPath.contains( "provided-0.1.jar" ) );
|
||||
assertTrue( testClassPath.toString(), testClassPath.contains( "compile-0.1.jar" ) );
|
||||
assertTrue( testClassPath.toString(), testClassPath.contains( "runtime-0.1.jar" ) );
|
||||
assertTrue( testClassPath.toString(), testClassPath.contains( "runtime-0.1-retro.jar" ) );
|
||||
assertTrue( testClassPath.toString(), testClassPath.contains( "test-0.1.jar" ) );
|
||||
assertEquals( 7, testClassPath.size() );
|
||||
assertEquals( 8, testClassPath.size() );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -50,6 +50,14 @@ under the License.
|
|||
<version>0.1</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<!-- just to have a classifier in the mix as well -->
|
||||
<groupId>org.apache.maven.its.it0142</groupId>
|
||||
<artifactId>runtime</artifactId>
|
||||
<version>0.1</version>
|
||||
<scope>runtime</scope>
|
||||
<classifier>retro</classifier>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.it0142</groupId>
|
||||
<artifactId>test</artifactId>
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue