o updating the tests for the embedder

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491469 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2006-12-31 19:22:57 +00:00
parent 87b3775025
commit 9780fa6c86
1 changed files with 3 additions and 9 deletions

View File

@ -2,7 +2,6 @@ package org.apache.maven.embedder;
import junit.framework.TestCase;
import org.apache.maven.artifact.Artifact;
//import org.apache.maven.cli.ConsoleDownloadMonitor;
import org.apache.maven.model.Model;
import org.apache.maven.monitor.event.DefaultEventMonitor;
import org.apache.maven.monitor.event.EventMonitor;
@ -10,6 +9,7 @@ import org.apache.maven.plugin.descriptor.PluginDescriptor;
import org.apache.maven.project.MavenProject;
import org.apache.maven.execution.MavenExecutionRequest;
import org.apache.maven.execution.DefaultMavenExecutionRequest;
import org.apache.maven.execution.MavenExecutionResult;
import org.codehaus.plexus.util.FileUtils;
import java.io.File;
@ -33,13 +33,7 @@ public class MavenEmbedderTest
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
maven = new MavenEmbedder();
maven.setClassLoader( classLoader );
maven.setLogger( new MavenEmbedderConsoleLogger() );
maven.start();
maven = new MavenEmbedder( classLoader, new MavenEmbedderConsoleLogger() );
}
protected void tearDown()
@ -73,7 +67,7 @@ public class MavenEmbedderTest
.setBasedir( targetDirectory )
.setGoals( Arrays.asList( new String[]{ "package" } ) );
maven.execute( request );
MavenExecutionResult result = maven.execute( request );
File jar = new File( targetDirectory, "target/embedder-test-project-1.0-SNAPSHOT.jar" );