make abstract - contains no tests

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163679 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-03-24 04:44:12 +00:00
parent b7290449e2
commit 9532b897aa
1 changed files with 9 additions and 5 deletions

View File

@ -30,14 +30,15 @@ import java.net.URL;
* @author <a href="mailto:jason@maven.org">Jason van Zyl </a> * @author <a href="mailto:jason@maven.org">Jason van Zyl </a>
* @version $Id$ * @version $Id$
*/ */
public class MavenTestCase public abstract class MavenTestCase
extends ArtifactEnabledPlexusTestCase extends ArtifactEnabledPlexusTestCase
{ {
protected PluginManager pluginManager; protected PluginManager pluginManager;
protected MavenProjectBuilder projectBuilder; protected MavenProjectBuilder projectBuilder;
protected void setUp() throws Exception protected void setUp()
throws Exception
{ {
super.setUp(); super.setUp();
@ -70,7 +71,8 @@ public class MavenTestCase
return resourceFile; return resourceFile;
} }
protected ArtifactRepository getLocalRepository() throws Exception protected ArtifactRepository getLocalRepository()
throws Exception
{ {
ArtifactRepositoryLayout repoLayout = (ArtifactRepositoryLayout) lookup( ArtifactRepositoryLayout.ROLE, ArtifactRepositoryLayout repoLayout = (ArtifactRepositoryLayout) lookup( ArtifactRepositoryLayout.ROLE,
"legacy" ); "legacy" );
@ -85,12 +87,14 @@ public class MavenTestCase
// Project building // Project building
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
protected MavenProject getProjectWithDependencies( File pom ) throws Exception protected MavenProject getProjectWithDependencies( File pom )
throws Exception
{ {
return projectBuilder.buildWithDependencies( pom, getLocalRepository() ); return projectBuilder.buildWithDependencies( pom, getLocalRepository() );
} }
protected MavenProject getProject( File pom ) throws Exception protected MavenProject getProject( File pom )
throws Exception
{ {
return projectBuilder.build( pom, getLocalRepository() ); return projectBuilder.build( pom, getLocalRepository() );
} }