org.apache.maven.shared.release.phase
Class AbstractReleaseTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.shared.release.phase.AbstractReleaseTestCase
All Implemented Interfaces:
Test
Direct Known Subclasses:
AbstractRewritingReleasePhaseTestCase, CheckDependencySnapshotsPhaseTest, CheckoutProjectFromScmTest, RemoveReleasePomsPhaseTest, ScmCommitDevelopmentPhaseTest, ScmCommitPreparationPhaseTest, ScmTagPhaseTest

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

Base class for some release tests.

Author:
Brett Porter

Field Summary
protected  ArtifactRepository localRepository
           
protected  ReleasePhase phase
           
protected  MavenProjectBuilder projectBuilder
           
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
AbstractReleaseTestCase()
           
 
Method Summary
protected  void comparePomFiles(File expectedFile, File actualFile)
           
protected  void comparePomFiles(File expectedFile, File actualFile, boolean normalizeLineEndings)
           
protected  boolean comparePomFiles(List<MavenProject> reactorProjects)
           
protected  boolean comparePomFiles(List<MavenProject> reactorProjects, boolean normalizeLineEndings)
           
protected  void comparePomFiles(List<MavenProject> reactorProjects, String expectedFileSuffix)
           
protected  void comparePomFiles(List<MavenProject> reactorProjects, String expectedFileSuffix, boolean normalizeLineEndings)
           
protected  void comparePomFiles(MavenProject project, String expectedFileSuffix)
           
protected  void comparePomFiles(MavenProject project, String expectedFileSuffix, boolean normalizeLineEndings)
           
protected  List<MavenProject> createReactorProjects(String path, String subpath)
           
protected  List<MavenProject> createReactorProjects(String path, String targetPath, String subpath)
           
static String getPath(File file)
           
protected static Map<String,MavenProject> getProjectsAsMap(List<MavenProject> reactorProjects)
           
protected  void setUp()
           
protected  void tearDown()
           
 
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
 
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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

projectBuilder

protected MavenProjectBuilder projectBuilder

localRepository

protected ArtifactRepository localRepository

phase

protected ReleasePhase phase
Constructor Detail

AbstractReleaseTestCase

public AbstractReleaseTestCase()
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

createReactorProjects

protected List<MavenProject> createReactorProjects(String path,
                                                   String subpath)
                                            throws Exception
Throws:
Exception

createReactorProjects

protected List<MavenProject> createReactorProjects(String path,
                                                   String targetPath,
                                                   String subpath)
                                            throws Exception
Throws:
Exception

getProjectsAsMap

protected static Map<String,MavenProject> getProjectsAsMap(List<MavenProject> reactorProjects)

comparePomFiles

protected boolean comparePomFiles(List<MavenProject> reactorProjects)
                           throws IOException
Throws:
IOException

comparePomFiles

protected boolean comparePomFiles(List<MavenProject> reactorProjects,
                                  boolean normalizeLineEndings)
                           throws IOException
Throws:
IOException

comparePomFiles

protected void comparePomFiles(List<MavenProject> reactorProjects,
                               String expectedFileSuffix)
                        throws IOException
Throws:
IOException

comparePomFiles

protected void comparePomFiles(List<MavenProject> reactorProjects,
                               String expectedFileSuffix,
                               boolean normalizeLineEndings)
                        throws IOException
Throws:
IOException

comparePomFiles

protected void comparePomFiles(MavenProject project,
                               String expectedFileSuffix)
                        throws IOException
Throws:
IOException

comparePomFiles

protected void comparePomFiles(MavenProject project,
                               String expectedFileSuffix,
                               boolean normalizeLineEndings)
                        throws IOException
Throws:
IOException

comparePomFiles

protected void comparePomFiles(File expectedFile,
                               File actualFile)
                        throws IOException
Throws:
IOException

comparePomFiles

protected void comparePomFiles(File expectedFile,
                               File actualFile,
                               boolean normalizeLineEndings)
                        throws IOException
Throws:
IOException

getPath

public static String getPath(File file)
                      throws IOException
Throws:
IOException


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.