org.apache.maven.it
Class MavenITmng3023ReactorDependencyResolutionTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.maven.it.AbstractMavenIntegrationTestCase
org.apache.maven.it.MavenITmng3023ReactorDependencyResolutionTest
- All Implemented Interfaces:
- Test
public class MavenITmng3023ReactorDependencyResolutionTest
- extends AbstractMavenIntegrationTestCase
This is a test set for MNG-3023
- Version:
- $Id: MavenITmng3023ReactorDependencyResolutionTest.java 981712 2010-08-03 00:36:19Z bentmann $
- Author:
- Mark Hobson, jdcasey
Method Summary |
void |
testitMNG3023A()
Test that reactor projects are included in dependency resolution. |
void |
testitMNG3023B()
Test that reactor projects are included in dependency resolution. |
void |
testitMNG3023C()
Test that reactor projects are included in dependency resolution. |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
MavenITmng3023ReactorDependencyResolutionTest
public MavenITmng3023ReactorDependencyResolutionTest()
testitMNG3023A
public void testitMNG3023A()
throws Exception
- Test that reactor projects are included in dependency resolution.
In this pass, the dependency artifact should be missing from the local repository, and since the 'compile' phase
has not been called, i.e. the output directory for the compiled classes has not been created yet, the
dependency project artifact should not have a file associated with it. Therefore, the dependency artifact
should fail to resolve, and the build should fail.
- Throws:
Exception
testitMNG3023B
public void testitMNG3023B()
throws Exception
- Test that reactor projects are included in dependency resolution.
I this pass, the dependency artifact should have the file $(basedir)/dependency/dependency-classes
(a directory) associated with it, since the 'compile' phase has run. This location should be
present in the compile classpath output from the maven-it-plugin-dependency-resolution:compile
mojo execution.
- Throws:
Exception
testitMNG3023C
public void testitMNG3023C()
throws Exception
- Test that reactor projects are included in dependency resolution.
I this pass, the dependency should have been installed, so the dependency artifact should have
a file of .../dependency-1.jar associated with it, since the 'install' phase has run. This
location should be present in the compile classpath output from the
maven-it-plugin-dependency-resolution:compile mojo execution.
Afterwards, the projects are cleaned and a separate Maven call to the 'initialize' phase should succeed, since
the dependency artifact has been installed locally. This second execution should use the jar file
from the local repository in its classpath output.
- Throws:
Exception
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.