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:
AbstractProjectInheritanceTestCase, ProjectClasspathTest

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

Author:
Jason van Zyl

Field Summary
protected  ProjectBuilder projectBuilder
           
protected  RepositorySystem repositorySystem
           
 
Constructor Summary
AbstractMavenProjectTestCase()
           
 
Method Summary
protected  String getCustomConfigurationName()
           
protected static File getFileForClasspathResource(String resource)
           
protected  ArtifactRepository getLocalRepository()
           
protected  File getLocalRepositoryPath()
           
protected  MavenProject getProject(File pom)
           
protected  ProjectBuilder getProjectBuilder()
           
protected  MavenProject getProjectWithDependencies(File pom)
           
protected  void initRepoSession(ProjectBuildingRequest request)
           
protected  void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

projectBuilder

protected ProjectBuilder projectBuilder

repositorySystem

protected RepositorySystem repositorySystem
Constructor Detail

AbstractMavenProjectTestCase

public AbstractMavenProjectTestCase()
Method Detail

setUp

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

tearDown

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

getProjectBuilder

protected ProjectBuilder getProjectBuilder()

getCustomConfigurationName

protected String getCustomConfigurationName()
Overrides:
getCustomConfigurationName in class org.codehaus.plexus.PlexusTestCase

getLocalRepositoryPath

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

getFileForClasspathResource

protected static File getFileForClasspathResource(String resource)
                                           throws FileNotFoundException
Throws:
FileNotFoundException

getLocalRepository

protected 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

initRepoSession

protected void initRepoSession(ProjectBuildingRequest request)


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