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

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
                  extended by org.apache.maven.shared.release.phase.AbstractRewritingReleasePhaseTestCase
                      extended by org.apache.maven.shared.release.phase.AbstractEditModeRewritingReleasePhaseTestCase
                          extended by org.apache.maven.shared.release.phase.RewritePomsForReleasePhaseTest
All Implemented Interfaces:
Test

public class RewritePomsForReleasePhaseTest
extends AbstractEditModeRewritingReleasePhaseTestCase

Test the SCM modification check phase.

Author:
Brett Porter

Field Summary
 
Fields inherited from class org.apache.maven.shared.release.phase.AbstractReleaseTestCase
localRepository, phase, projectBuilder
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
RewritePomsForReleasePhaseTest()
           
 
Method Summary
protected  ReleaseDescriptor createConfigurationForPomWithParentAlternateNextVersion(List<MavenProject> reactorProjects)
           
protected  ReleaseDescriptor createConfigurationForWithParentNextVersion(List<MavenProject> reactorProjects)
           
protected  ReleaseDescriptor createDescriptorFromProjects(List<MavenProject> reactorProjects)
           
protected  void mapAlternateNextVersion(ReleaseDescriptor config, String projectId)
           
protected  void mapNextVersion(ReleaseDescriptor config, String projectId)
           
protected  List<MavenProject> prepareReactorProjects(String path, boolean copyFiles)
           
protected  String readTestProjectFile(String fileName)
           
protected  void setUp()
           
 void testClean()
           
 void testCleanNotExists()
           
 void testRewriteBasicPomWithCvs()
           
 void testRewriteBasicPomWithCvsFromTag()
           
 void testRewriteBasicPomWithEmptyScm()
           
 void testRewriteBasicPomWithInheritedScm()
           
 void testRewriteBasicPomWithScmExpression()
           
 void testRewriteBasicPomWithTagBase()
           
 void testRewriteBasicPomWithTagBaseAndVaryingScmUrls()
           
 void testRewriteInterpolatedVersions()
           
 void testRewriteInterpolatedVersionsDifferentVersion()
           
 void testRewritePomForFlatMultiModule()
           
 void testRewritePomWithCDATASectionOnWindows()
           
 void testRewritePomWithDeepSubprojects()
           
 void testRewritePomWithDependencyPropertyCoordinate()
           
 void testRewritePomWithDifferentVersionsAcrossModules()
           
 void testRewritePomWithExternallyReleasedParent()
           
 void testRewritePomWithImportedDependencyManagementInReactor()
           
 void testRewritePomWithParentAndProperties()
           
 void testRewritePomWithScmOfParentEndingWithASlash()
           
 void testRewriteWithDashedComments()
           
 void testScmOverridden()
           
 void testSimulateRewrite()
           
protected  void unmapNextVersion(ReleaseDescriptor config, String projectId)
           
 
Methods inherited from class org.apache.maven.shared.release.phase.AbstractEditModeRewritingReleasePhaseTestCase
testRewriteBasicPomWithEditMode, testRewriteBasicPomWithEditModeException, testRewriteBasicPomWithEditModeFailure, testRewritePomPluginDependencies, testRewritePomProfile, testRewritePomUnmappedPluginDependencies, testRewritePomUnmappedProfile
 
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, verifyReactorProjects
 
Methods inherited from class org.apache.maven.shared.release.phase.AbstractReleaseTestCase
comparePomFiles, 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.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
 

Constructor Detail

RewritePomsForReleasePhaseTest

public RewritePomsForReleasePhaseTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class AbstractReleaseTestCase
Throws:
Exception

prepareReactorProjects

protected List<MavenProject> prepareReactorProjects(String path,
                                                    boolean copyFiles)
                                             throws Exception
Specified by:
prepareReactorProjects in class AbstractRewritingReleasePhaseTestCase
Throws:
Exception

readTestProjectFile

protected String readTestProjectFile(String fileName)
                              throws IOException
Specified by:
readTestProjectFile in class AbstractRewritingReleasePhaseTestCase
Throws:
IOException

testSimulateRewrite

public void testSimulateRewrite()
                         throws Exception
Throws:
Exception

testRewriteWithDashedComments

public void testRewriteWithDashedComments()
                                   throws Exception
Throws:
Exception

testClean

public void testClean()
               throws Exception
Throws:
Exception

testCleanNotExists

public void testCleanNotExists()
                        throws Exception
Throws:
Exception

testScmOverridden

public void testScmOverridden()
                       throws Exception
Throws:
Exception

mapAlternateNextVersion

protected void mapAlternateNextVersion(ReleaseDescriptor config,
                                       String projectId)
Specified by:
mapAlternateNextVersion in class AbstractRewritingReleasePhaseTestCase

mapNextVersion

protected void mapNextVersion(ReleaseDescriptor config,
                              String projectId)
Specified by:
mapNextVersion 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

unmapNextVersion

protected void unmapNextVersion(ReleaseDescriptor config,
                                String projectId)
Specified by:
unmapNextVersion in class AbstractRewritingReleasePhaseTestCase

testRewriteBasicPomWithCvs

public void testRewriteBasicPomWithCvs()
                                throws Exception
Throws:
Exception

testRewriteBasicPomWithScmExpression

public void testRewriteBasicPomWithScmExpression()
                                          throws Exception
Throws:
Exception

testRewriteBasicPomWithTagBase

public void testRewriteBasicPomWithTagBase()
                                    throws Exception
Throws:
Exception

testRewriteBasicPomWithTagBaseAndVaryingScmUrls

public void testRewriteBasicPomWithTagBaseAndVaryingScmUrls()
                                                     throws Exception
Throws:
Exception

testRewriteBasicPomWithCvsFromTag

public void testRewriteBasicPomWithCvsFromTag()
                                       throws Exception
Throws:
Exception

testRewriteBasicPomWithEmptyScm

public void testRewriteBasicPomWithEmptyScm()
                                     throws Exception
Throws:
Exception

testRewriteInterpolatedVersions

public void testRewriteInterpolatedVersions()
                                     throws Exception
Throws:
Exception

testRewriteInterpolatedVersionsDifferentVersion

public void testRewriteInterpolatedVersionsDifferentVersion()
                                                     throws Exception
Throws:
Exception

testRewriteBasicPomWithInheritedScm

public void testRewriteBasicPomWithInheritedScm()
                                         throws Exception
Throws:
Exception

testRewritePomWithParentAndProperties

public void testRewritePomWithParentAndProperties()
                                           throws Exception
Throws:
Exception

testRewritePomWithDependencyPropertyCoordinate

public void testRewritePomWithDependencyPropertyCoordinate()
                                                    throws Exception
Throws:
Exception

testRewritePomWithScmOfParentEndingWithASlash

public void testRewritePomWithScmOfParentEndingWithASlash()
                                                   throws Exception
Throws:
Exception

testRewritePomWithDeepSubprojects

public void testRewritePomWithDeepSubprojects()
                                       throws Exception
Throws:
Exception

testRewritePomForFlatMultiModule

public void testRewritePomForFlatMultiModule()
                                      throws Exception
Throws:
Exception

testRewritePomWithCDATASectionOnWindows

public void testRewritePomWithCDATASectionOnWindows()
                                             throws Exception
Throws:
Exception

createDescriptorFromProjects

protected ReleaseDescriptor createDescriptorFromProjects(List<MavenProject> reactorProjects)
Overrides:
createDescriptorFromProjects in class AbstractRewritingReleasePhaseTestCase

testRewritePomWithExternallyReleasedParent

public void testRewritePomWithExternallyReleasedParent()
                                                throws Exception
Throws:
Exception

testRewritePomWithImportedDependencyManagementInReactor

public void testRewritePomWithImportedDependencyManagementInReactor()
                                                             throws Exception
Throws:
Exception

testRewritePomWithDifferentVersionsAcrossModules

public void testRewritePomWithDifferentVersionsAcrossModules()
                                                      throws Exception
Throws:
Exception


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