mirror of
https://github.com/apache/maven.git
synced 2025-03-08 01:30:33 +00:00
o there is an IT for optional dependencies and we'll put a proper UT in the POM construction tests for optional deps.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796742 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4179dbcd41
commit
3e10bb2686
@ -93,26 +93,6 @@ protected void assertNoExceptions( MavenExecutionResult result )
|
||||
|
||||
fail( "Encountered Exceptions in MavenExecutionResult during " + getName() );
|
||||
}
|
||||
|
||||
public void testWithOptionalDependencies()
|
||||
throws Exception
|
||||
{
|
||||
File testDirectory = new File( basedir, "src/test/projects/optional-dep" );
|
||||
|
||||
File targetDirectory = new File( basedir, "target/projects/option-dep" );
|
||||
|
||||
FileUtils.copyDirectoryStructure( testDirectory, targetDirectory );
|
||||
|
||||
MavenExecutionRequest request = createMavenExecutionRequest( new File( targetDirectory, "pom.xml" ) );
|
||||
|
||||
MavenExecutionResult result = mavenEmbedder.execute( request );
|
||||
|
||||
if (result.hasExceptions() )
|
||||
{
|
||||
result.getExceptions().get( 0 ).printStackTrace();
|
||||
fail( "Project didn't execute correctly.");
|
||||
}
|
||||
}
|
||||
|
||||
/*MNG-3919*/
|
||||
public void testWithInvalidGoal()
|
||||
|
Loading…
x
Reference in New Issue
Block a user