org.apache.maven.project
Class AbstractMavenProjectTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.project.AbstractMavenProjectTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractProjectImportsTestCase, AbstractProjectInheritanceTestCase, CanonicalProjectBuilderTest, DefaultMavenProjectBuilderTest, DefaultModelValidatorTest, MavenProjectTest, ProjectBaseDirectoryAlignmentTest, ProjectClasspathTest

public abstract class AbstractMavenProjectTestCase
extends org.codehaus.plexus.PlexusTestCase

Version:
$Id: AbstractMavenProjectTestCase.java 641671 2008-03-27 01:05:26Z jdcasey $
Author:
Jason van Zyl

Field Summary
protected  MavenProjectBuilder projectBuilder
           
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
AbstractMavenProjectTestCase()
           
 
Method Summary
protected  File getFileForClasspathResource(String resource)
           
protected  org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
           
protected  File getLocalRepositoryPath()
           
protected  MavenProject getProject(File pom)
           
protected  MavenProject getProjectWithDependencies(File pom)
           
protected  void setUp()
           
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

projectBuilder

protected MavenProjectBuilder projectBuilder
Constructor Detail

AbstractMavenProjectTestCase

public AbstractMavenProjectTestCase()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class org.codehaus.plexus.PlexusTestCase
Throws:
Exception

getLocalRepositoryPath

protected File getLocalRepositoryPath()
                               throws FileNotFoundException,
                                      URISyntaxException
Throws:
FileNotFoundException
URISyntaxException

getFileForClasspathResource

protected File getFileForClasspathResource(String resource)
                                    throws FileNotFoundException,
                                           URISyntaxException
Throws:
FileNotFoundException
URISyntaxException

getLocalRepository

protected org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
                                                                              throws Exception
Throws:
Exception

getProjectWithDependencies

protected MavenProject getProjectWithDependencies(File pom)
                                           throws Exception
Throws:
Exception

getProject

protected MavenProject getProject(File pom)
                           throws Exception
Throws:
Exception


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.