org.apache.maven.shared.release.phase
Class GenerateReleasePomsPhaseTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.shared.release.phase.AbstractReleaseTestCase
org.apache.maven.shared.release.phase.AbstractRewritingReleasePhaseTestCase
org.apache.maven.shared.release.phase.GenerateReleasePomsPhaseTest
- All Implemented Interfaces:
- Test
public class GenerateReleasePomsPhaseTest
- extends AbstractRewritingReleasePhaseTestCase
Test the generate release POMs phase.
- Author:
- Mark Hobson
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
basedir, container |
Methods inherited from class org.apache.maven.shared.release.phase.AbstractRewritingReleasePhaseTestCase |
createDefaultConfiguration, createDescriptorFromBasicPom, createMappedConfiguration, createReactorProjects, createReactorProjectsFromBasicPom, createUnmappedConfiguration, testCleanNoProjects, testRewriteAddSchema, testRewriteBasicPom, testRewriteBasicPomEntities, testRewriteBasicPomNamespace, testRewriteBasicPomWithEncoding, testRewriteBasicPomWithNoSuchProviderException, testRewriteBasicPomWithScmRepoException, testRewriteCDataAroundValues, testRewriteCommentsAroundValues, testRewriteManagedPomDependencies, testRewriteManagedPomPlugins, testRewriteManagedPomUnmappedDependencies, testRewriteManagedPomUnmappedPlugins, testRewritePomDependencies, testRewritePomDependenciesDifferentVersion, testRewritePomDependenciesWithNamespace, testRewritePomExtension, testRewritePomExtensionDifferentVersion, testRewritePomExtensionUndefinedVersion, testRewritePomPlugins, testRewritePomPluginsDifferentVersion, testRewritePomReportPlugins, testRewritePomReportPluginsDifferentVersion, testRewritePomUnmappedDependencies, testRewritePomUnmappedExtension, testRewritePomUnmappedPlugins, testRewritePomUnmappedReportPlugins, testRewritePomWithChangedInheritedVersion, testRewritePomWithInheritedVersion, testRewritePomWithParent, testRewritePomWithReleasedParent, testRewritePomWithUnmappedParent, testRewriteUnmappedPom, testRewriteWhitespaceAroundValues, testSimulateRewriteEditModeSkipped |
Methods inherited from class org.apache.maven.shared.release.phase.AbstractReleaseTestCase |
comparePomFiles, comparePomFiles, comparePomFiles, comparePomFiles, comparePomFiles, comparePomFiles, comparePomFiles, createReactorProjects, createReactorProjects, getPath, getProjectsAsMap, 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 |
GenerateReleasePomsPhaseTest
public GenerateReleasePomsPhaseTest()
setUp
protected void setUp()
throws Exception
- Overrides:
setUp
in class AbstractReleaseTestCase
- Throws:
Exception
testRewriteExternalRangeDependency
public void testRewriteExternalRangeDependency()
throws Exception
- Throws:
Exception
createDescriptorFromProjects
protected ReleaseDescriptor createDescriptorFromProjects(List<MavenProject> reactorProjects)
- Overrides:
createDescriptorFromProjects
in class AbstractRewritingReleasePhaseTestCase
prepareReactorProjects
protected List<MavenProject> prepareReactorProjects(String path,
boolean copyFiles)
throws Exception
- Specified by:
prepareReactorProjects
in class AbstractRewritingReleasePhaseTestCase
- Throws:
Exception
verifyReactorProjects
protected void verifyReactorProjects(String path,
boolean copyFiles)
throws Exception
- Overrides:
verifyReactorProjects
in class AbstractRewritingReleasePhaseTestCase
- Throws:
Exception
mapNextVersion
protected void mapNextVersion(ReleaseDescriptor config,
String projectId)
- Specified by:
mapNextVersion
in class AbstractRewritingReleasePhaseTestCase
mapAlternateNextVersion
protected void mapAlternateNextVersion(ReleaseDescriptor config,
String projectId)
- Specified by:
mapAlternateNextVersion
in class AbstractRewritingReleasePhaseTestCase
unmapNextVersion
protected void unmapNextVersion(ReleaseDescriptor config,
String projectId)
- Specified by:
unmapNextVersion
in class AbstractRewritingReleasePhaseTestCase
createConfigurationForPomWithParentAlternateNextVersion
protected ReleaseDescriptor createConfigurationForPomWithParentAlternateNextVersion(List<MavenProject> reactorProjects)
throws Exception
- Specified by:
createConfigurationForPomWithParentAlternateNextVersion
in class AbstractRewritingReleasePhaseTestCase
- Throws:
Exception
createConfigurationForWithParentNextVersion
protected ReleaseDescriptor createConfigurationForWithParentNextVersion(List<MavenProject> reactorProjects)
throws Exception
- Specified by:
createConfigurationForWithParentNextVersion
in class AbstractRewritingReleasePhaseTestCase
- Throws:
Exception
readTestProjectFile
protected String readTestProjectFile(String fileName)
throws IOException
- Specified by:
readTestProjectFile
in class AbstractRewritingReleasePhaseTestCase
- Throws:
IOException
comparePomFiles
protected void comparePomFiles(MavenProject project,
String expectedFileSuffix,
boolean normalizeLineEndings)
throws IOException
- Overrides:
comparePomFiles
in class AbstractReleaseTestCase
- Throws:
IOException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.