mirror of https://github.com/apache/maven.git
o we already have a number of tests in the core testing simple execution of a pom and a directory with a pom
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796746 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3e10bb2686
commit
0b8922f02c
|
@ -117,30 +117,6 @@ public class MavenEmbedderTest
|
|||
}
|
||||
}
|
||||
|
||||
public void testExecutionUsingAPomFile()
|
||||
throws Exception
|
||||
{
|
||||
File testDirectory = new File( basedir, "src/test/embedder-test-project" );
|
||||
|
||||
File targetDirectory = new File( basedir, "target/embedder-test-project1" );
|
||||
|
||||
FileUtils.copyDirectoryStructure( testDirectory, targetDirectory );
|
||||
|
||||
MavenExecutionRequest request = createMavenExecutionRequest( new File( targetDirectory, "pom.xml" ) );
|
||||
|
||||
MavenExecutionResult result = mavenEmbedder.execute( request );
|
||||
|
||||
assertNoExceptions( result );
|
||||
|
||||
MavenProject project = result.getProject();
|
||||
|
||||
assertEquals( "embedder-test-project", project.getArtifactId() );
|
||||
|
||||
File jar = new File( targetDirectory, "target/embedder-test-project-1.0-SNAPSHOT.jar" );
|
||||
|
||||
assertTrue( jar.exists() );
|
||||
}
|
||||
|
||||
public void testExecutionUsingAProfileWhichSetsAProperty()
|
||||
throws Exception
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue