org.apache.maven.shared.release.phase
Class AbstractReleaseTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
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
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
basedir, container |
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.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 |
projectBuilder
protected MavenProjectBuilder projectBuilder
localRepository
protected ArtifactRepository localRepository
phase
protected ReleasePhase phase
AbstractReleaseTestCase
public AbstractReleaseTestCase()
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.