org.apache.maven.project
Class PomConstructionTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.project.PomConstructionTest
- All Implemented Interfaces:
- junit.framework.Test
public class PomConstructionTest
- extends PlexusTestCase
| Methods inherited from class org.codehaus.plexus.PlexusTestCase |
customizeContext, getBasedir, getClassLoader, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, teardownContainer |
| 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 |
PomConstructionTest
public PomConstructionTest()
customizeContainerConfiguration
protected void customizeContainerConfiguration(ContainerConfiguration containerConfiguration)
- Overrides:
customizeContainerConfiguration in class PlexusTestCase
setUp
protected void setUp()
throws Exception
- Overrides:
setUp in class PlexusTestCase
- Throws:
Exception
tearDown
protected void tearDown()
throws Exception
- Overrides:
tearDown in class PlexusTestCase
- Throws:
Exception
testEmptyUrl
public void testEmptyUrl()
throws Exception
- Will throw exception if url is empty. MNG-4050
- Throws:
Exception
testProfileModules
public void testProfileModules()
throws Exception
- Tests that modules is not overriden by profile
- Throws:
Exception
testParentInheritance
public void testParentInheritance()
throws Exception
- Will throw exception if doesn't find parent(s) in build
- Throws:
Exception
testExecutionConfigurationJoin
public void testExecutionConfigurationJoin()
throws Exception
- Throws:
Exception
testPluginConfigProperties
public void testPluginConfigProperties()
throws Exception
- Throws:
Exception
testProfilePropertiesInterpolation
public void testProfilePropertiesInterpolation()
throws Exception
- Throws:
Exception
testThatExecutionsWithoutIdsAreMergedAndTheChildWins
public void testThatExecutionsWithoutIdsAreMergedAndTheChildWins()
throws Exception
- Throws:
Exception
testDuplicateExclusionsDependency
public void testDuplicateExclusionsDependency()
throws Exception
- Throws:
Exception
testMultipleFilters
public void testMultipleFilters()
throws Exception
- Throws:
Exception
testDuplicateDependenciesCauseLastDeclarationToBePickedInLenientMode
public void testDuplicateDependenciesCauseLastDeclarationToBePickedInLenientMode()
throws Exception
- MNG-4005: postponed to 3.1
public void testValidationErrorUponNonUniqueDependencyKey()
throws Exception
{
try
{
buildPom( "unique-dependency-key/deps" );
fail( "Non-unique dependency keys did not cause validation error" );
}
catch ( ProjectBuildingException e )
{
// expected
}
}
public void testValidationErrorUponNonUniqueDependencyManagementKey()
throws Exception
{
try
{
buildPom( "unique-dependency-key/dep-mngt" );
fail( "Non-unique dependency keys did not cause validation error" );
}
catch ( ProjectBuildingException e )
{
// expected
}
}
public void testValidationErrorUponNonUniqueDependencyKeyInProfile()
throws Exception
{
try
{
buildPom( "unique-dependency-key/deps-in-profile" );
fail( "Non-unique dependency keys did not cause validation error" );
}
catch ( ProjectBuildingException e )
{
// expected
}
}
public void testValidationErrorUponNonUniqueDependencyManagementKeyInProfile()
throws Exception
{
try
{
buildPom( "unique-dependency-key/dep-mngt-in-profile" );
fail( "Non-unique dependency keys did not cause validation error" );
}
catch ( ProjectBuildingException e )
{
// expected
}
}
- Throws:
Exception
testParentInterpolation
public void testParentInterpolation()
throws Exception
- Throws:
Exception
testPluginManagementInherited
public void testPluginManagementInherited()
throws Exception
- Throws:
Exception
testPluginManagementDependencies
public void testPluginManagementDependencies()
throws Exception
- Throws:
Exception
testReportingInterpolation
public void testReportingInterpolation()
throws Exception
- Throws:
Exception
testPluginOrder
public void testPluginOrder()
throws Exception
- Throws:
Exception
testErroneousJoiningOfDifferentPluginsWithEqualDependencies
public void testErroneousJoiningOfDifferentPluginsWithEqualDependencies()
throws Exception
- Throws:
Exception
testErroneousJoiningOfDifferentPluginsWithEqualExecutionIds
public void testErroneousJoiningOfDifferentPluginsWithEqualExecutionIds()
throws Exception
- MNG-3821
- Throws:
Exception
testExecutionConfiguration
public void testExecutionConfiguration()
throws Exception
- MNG-3998
- Throws:
Exception
testSingleConfigurationInheritance
public void testSingleConfigurationInheritance()
throws Exception
- Throws:
Exception
testConfigWithPluginManagement
public void testConfigWithPluginManagement()
throws Exception
- Throws:
Exception
testExecutionConfigurationSubcollections
public void testExecutionConfigurationSubcollections()
throws Exception
- MNG-3965
- Throws:
Exception
testMultipleRepositories
public void testMultipleRepositories()
throws Exception
- MNG-3985
- Throws:
Exception
testMultipleExecutionIds
public void testMultipleExecutionIds()
throws Exception
- MNG-3965
- Throws:
Exception
testConsecutiveEmptyElements
public void testConsecutiveEmptyElements()
throws Exception
- MNG-3997
- Throws:
Exception
testOrderOfGoalsFromPluginExecutionWithoutPluginManagement
public void testOrderOfGoalsFromPluginExecutionWithoutPluginManagement()
throws Exception
- Throws:
Exception
testOrderOfGoalsFromPluginExecutionWithPluginManagement
public void testOrderOfGoalsFromPluginExecutionWithPluginManagement()
throws Exception
- Throws:
Exception
testOrderOfPluginExecutionsWithoutPluginManagement
public void testOrderOfPluginExecutionsWithoutPluginManagement()
throws Exception
- Throws:
Exception
testOrderOfPluginExecutionsWithPluginManagement
public void testOrderOfPluginExecutionsWithPluginManagement()
throws Exception
- Throws:
Exception
testMergeOfPluginExecutionsWhenChildInheritsPluginVersion
public void testMergeOfPluginExecutionsWhenChildInheritsPluginVersion()
throws Exception
- Throws:
Exception
testMergeOfPluginExecutionsWhenChildAndParentUseDifferentPluginVersions
public void testMergeOfPluginExecutionsWhenChildAndParentUseDifferentPluginVersions()
throws Exception
- Throws:
Exception
testInterpolationWithXmlMarkup
public void testInterpolationWithXmlMarkup()
throws Exception
- Throws:
Exception
testOrderOfMergedPluginExecutionsWithoutPluginManagement
public void testOrderOfMergedPluginExecutionsWithoutPluginManagement()
throws Exception
- Throws:
Exception
testOrderOfMergedPluginExecutionsWithPluginManagement
public void testOrderOfMergedPluginExecutionsWithPluginManagement()
throws Exception
- Throws:
Exception
testDifferentContainersWithSameId
public void testDifferentContainersWithSameId()
throws Exception
- Throws:
Exception
testOrderOfMergedPluginExecutionGoalsWithoutPluginManagement
public void testOrderOfMergedPluginExecutionGoalsWithoutPluginManagement()
throws Exception
- Throws:
Exception
testOrderOfMergedPluginExecutionGoalsWithPluginManagement
public void testOrderOfMergedPluginExecutionGoalsWithPluginManagement()
throws Exception
- Throws:
Exception
testOverridingOfInheritedPluginExecutionsWithoutPluginManagement
public void testOverridingOfInheritedPluginExecutionsWithoutPluginManagement()
throws Exception
- Throws:
Exception
testOverridingOfInheritedPluginExecutionsWithPluginManagement
public void testOverridingOfInheritedPluginExecutionsWithPluginManagement()
throws Exception
- Throws:
Exception
testOrderOfMergedPluginDependenciesWithoutPluginManagement
public void testOrderOfMergedPluginDependenciesWithoutPluginManagement()
throws Exception
- Throws:
Exception
testOrderOfMergedPluginDependenciesWithPluginManagement
public void testOrderOfMergedPluginDependenciesWithPluginManagement()
throws Exception
- Throws:
Exception
testInterpolationOfNestedBuildDirectories
public void testInterpolationOfNestedBuildDirectories()
throws Exception
- Throws:
Exception
testAppendArtifactIdOfChildToInheritedUrls
public void testAppendArtifactIdOfChildToInheritedUrls()
throws Exception
- Throws:
Exception
testAppendArtifactIdOfParentAndChildToInheritedUrls
public void testAppendArtifactIdOfParentAndChildToInheritedUrls()
throws Exception
- Throws:
Exception
testNonInheritedElementsInSubtreesOverriddenByChild
public void testNonInheritedElementsInSubtreesOverriddenByChild()
throws Exception
- Throws:
Exception
testXmlTextCoalescing
public void testXmlTextCoalescing()
throws Exception
- Throws:
Exception
testFullInterpolationOfNestedExpressions
public void testFullInterpolationOfNestedExpressions()
throws Exception
- Throws:
Exception
testInterpolationOfLegacyExpressionsThatDontIncludeTheProjectPrefix
public void testInterpolationOfLegacyExpressionsThatDontIncludeTheProjectPrefix()
throws Exception
- Throws:
Exception
testInterpolationWithBasedirAlignedDirectories
public void testInterpolationWithBasedirAlignedDirectories()
throws Exception
- Throws:
Exception
testInterpolationOfBasedirInPomWithUnusualName
public void testInterpolationOfBasedirInPomWithUnusualName()
throws Exception
- Throws:
Exception
testJoiningOfContainersWhenChildHasEmptyElements
public void testJoiningOfContainersWhenChildHasEmptyElements()
throws Exception
- Throws:
Exception
testOrderOfPluginConfigurationElementsWithoutPluginManagement
public void testOrderOfPluginConfigurationElementsWithoutPluginManagement()
throws Exception
- Throws:
Exception
testOrderOfPluginConfigurationElementsWithPluginManagement
public void testOrderOfPluginConfigurationElementsWithPluginManagement()
throws Exception
- Throws:
Exception
testOrderOfPluginExecutionConfigurationElementsWithoutPluginManagement
public void testOrderOfPluginExecutionConfigurationElementsWithoutPluginManagement()
throws Exception
- Throws:
Exception
testOrderOfPluginExecutionConfigurationElementsWithPluginManagement
public void testOrderOfPluginExecutionConfigurationElementsWithPluginManagement()
throws Exception
- Throws:
Exception
testMergeOfInheritedPluginConfiguration
public void testMergeOfInheritedPluginConfiguration()
throws Exception
- Throws:
Exception
testAppendOfInheritedPluginConfigurationWithNoProfile
public void testAppendOfInheritedPluginConfigurationWithNoProfile()
throws Exception
- Throws:
Exception
testAppendOfInheritedPluginConfigurationWithActiveProfile
public void testAppendOfInheritedPluginConfigurationWithActiveProfile()
throws Exception
- Throws:
Exception
testMultiplePluginExecutionsWithAndWithoutIdsWithoutPluginManagement
public void testMultiplePluginExecutionsWithAndWithoutIdsWithoutPluginManagement()
throws Exception
- Throws:
Exception
testMultiplePluginExecutionsWithAndWithoutIdsWithPluginManagement
public void testMultiplePluginExecutionsWithAndWithoutIdsWithPluginManagement()
throws Exception
- Throws:
Exception
testDependencyOrderWithoutPluginManagement
public void testDependencyOrderWithoutPluginManagement()
throws Exception
- Throws:
Exception
testDependencyOrderWithPluginManagement
public void testDependencyOrderWithPluginManagement()
throws Exception
- Throws:
Exception
testBuildDirectoriesUsePlatformSpecificFileSeparator
public void testBuildDirectoriesUsePlatformSpecificFileSeparator()
throws Exception
- Throws:
Exception
testMergedFilterOrder
public void testMergedFilterOrder()
throws Exception
- Throws:
Exception
testProfileInjectedDependencies
public void testProfileInjectedDependencies()
throws Exception
- MNG-4027
- Throws:
Exception
testProfileDependenciesMultipleProfiles
public void testProfileDependenciesMultipleProfiles()
throws Exception
- IT-0021
- Throws:
Exception
testDependencyInheritance
public void testDependencyInheritance()
throws Exception
- Throws:
Exception
testManagedProfileDependency
public void testManagedProfileDependency()
throws Exception
- MNG-4034
- Throws:
Exception
testProfileModuleInheritance
public void testProfileModuleInheritance()
throws Exception
- MNG-4040
- Throws:
Exception
testUncPath
public void testUncPath()
throws Exception
- MNG-3621
- Throws:
Exception
testUrlAppendWithChildPathAdjustment
public void testUrlAppendWithChildPathAdjustment()
throws Exception
- MNG-2006
- Throws:
Exception
testRepoInheritance
public void testRepoInheritance()
throws Exception
- MNG-0479
- Throws:
Exception
testEmptyScm
public void testEmptyScm()
throws Exception
- Throws:
Exception
testPluginConfigurationUsingAttributesWithoutPluginManagement
public void testPluginConfigurationUsingAttributesWithoutPluginManagement()
throws Exception
- Throws:
Exception
testPluginConfigurationUsingAttributesWithPluginManagement
public void testPluginConfigurationUsingAttributesWithPluginManagement()
throws Exception
- MNG-4053
- Throws:
Exception
testPluginConfigurationUsingAttributesWithPluginManagementAndProfile
public void testPluginConfigurationUsingAttributesWithPluginManagementAndProfile()
throws Exception
- Throws:
Exception
testPomEncoding
public void testPomEncoding()
throws Exception
- Throws:
Exception
testXmlWhitespaceHandling
public void testXmlWhitespaceHandling()
throws Exception
- Throws:
Exception
testInterpolationOfBaseUrl
public void testInterpolationOfBaseUrl()
throws Exception
- Throws:
Exception
testReportingPluginConfig
public void testReportingPluginConfig()
throws Exception
- Throws:
Exception
testPropertiesNoDuplication
public void testPropertiesNoDuplication()
throws Exception
- Throws:
Exception
testPomInheritance
public void testPomInheritance()
throws Exception
- Throws:
Exception
testCompleteModelWithoutParent
public void testCompleteModelWithoutParent()
throws Exception
- Throws:
Exception
testCompleteModelWithParent
public void testCompleteModelWithParent()
throws Exception
- Throws:
Exception
testProfileInjectionOrder
public void testProfileInjectionOrder()
throws Exception
- Throws:
Exception
testPropertiesInheritance
public void testPropertiesInheritance()
throws Exception
- Throws:
Exception
testInheritedPropertiesInterpolatedWithValuesFromChildWithoutProfiles
public void testInheritedPropertiesInterpolatedWithValuesFromChildWithoutProfiles()
throws Exception
- Throws:
Exception
testInheritedPropertiesInterpolatedWithValuesFromChildWithActiveProfiles
public void testInheritedPropertiesInterpolatedWithValuesFromChildWithActiveProfiles()
throws Exception
- Throws:
Exception
testProfileDefaultActivation
public void testProfileDefaultActivation()
throws Exception
- Throws:
Exception
testBooleanInterpolation
public void testBooleanInterpolation()
throws Exception
- Throws:
Exception
testBuildExtensionInheritance
public void testBuildExtensionInheritance()
throws Exception
- Throws:
Exception
testJdkActivation
public void testJdkActivation()
throws Exception
- Throws:
Exception
testProfilePluginMngDependencies
public void testProfilePluginMngDependencies()
throws Exception
- Throws:
Exception
testPercentEncodedUrlsMustNotBeDecoded
public void testPercentEncodedUrlsMustNotBeDecoded()
throws Exception
- MNG-4116
- Throws:
Exception
testPluginManagementInheritance
public void testPluginManagementInheritance()
throws Exception
- Throws:
Exception
testProfilePlugins
public void testProfilePlugins()
throws Exception
- Throws:
Exception
testPluginInheritanceSimple
public void testPluginInheritanceSimple()
throws Exception
- Throws:
Exception
testPluginManagementDuplicate
public void testPluginManagementDuplicate()
throws Exception
- Throws:
Exception
testDistributionManagement
public void testDistributionManagement()
throws Exception
- Throws:
Exception
testDependencyScopeInheritance
public void testDependencyScopeInheritance()
throws Exception
- Throws:
Exception
testDependencyScope
public void testDependencyScope()
throws Exception
- Throws:
Exception
testDependencyManagementWithInterpolation
public void testDependencyManagementWithInterpolation()
throws Exception
- Throws:
Exception
testInterpolationWithSystemProperty
public void testInterpolationWithSystemProperty()
throws Exception
- Throws:
Exception
testPluginExecutionInheritanceWhenChildDoesNotDeclarePlugin
public void testPluginExecutionInheritanceWhenChildDoesNotDeclarePlugin()
throws Exception
- Throws:
Exception
testPluginExecutionInheritanceWhenChildDoesDeclarePluginAsWell
public void testPluginExecutionInheritanceWhenChildDoesDeclarePluginAsWell()
throws Exception
- Throws:
Exception
testValidationErrorUponNonUniqueArtifactRepositoryId
public void testValidationErrorUponNonUniqueArtifactRepositoryId()
throws Exception
- Throws:
Exception
testValidationErrorUponNonUniquePluginRepositoryId
public void testValidationErrorUponNonUniquePluginRepositoryId()
throws Exception
- Throws:
Exception
testValidationErrorUponNonUniqueArtifactRepositoryIdInProfile
public void testValidationErrorUponNonUniqueArtifactRepositoryIdInProfile()
throws Exception
- Throws:
Exception
testValidationErrorUponNonUniquePluginRepositoryIdInProfile
public void testValidationErrorUponNonUniquePluginRepositoryIdInProfile()
throws Exception
- Throws:
Exception
testPrerequisitesAreNotInherited
public void testPrerequisitesAreNotInherited()
throws Exception
- MNG-3843
- Throws:
Exception
testLicensesAreInheritedButNotAggregated
public void testLicensesAreInheritedButNotAggregated()
throws Exception
- Throws:
Exception
testDevelopersAreInheritedButNotAggregated
public void testDevelopersAreInheritedButNotAggregated()
throws Exception
- Throws:
Exception
testContributorsAreInheritedButNotAggregated
public void testContributorsAreInheritedButNotAggregated()
throws Exception
- Throws:
Exception
testMailingListsAreInheritedButNotAggregated
public void testMailingListsAreInheritedButNotAggregated()
throws Exception
- Throws:
Exception
testPluginInheritanceOrder
public void testPluginInheritanceOrder()
throws Exception
- Throws:
Exception
testCliPropsDominateProjectPropsDuringInterpolation
public void testCliPropsDominateProjectPropsDuringInterpolation()
throws Exception
- Throws:
Exception
testParentPomPackagingMustBePom
public void testParentPomPackagingMustBePom()
throws Exception
- Throws:
Exception
testManagedPluginConfigurationAppliesToImplicitPluginsIntroducedByPackaging
public void testManagedPluginConfigurationAppliesToImplicitPluginsIntroducedByPackaging()
throws Exception
- MNG-522, MNG-3018
- Throws:
Exception
testDefaultPluginsExecutionContributedByPackagingExecuteBeforeUserDefinedExecutions
public void testDefaultPluginsExecutionContributedByPackagingExecuteBeforeUserDefinedExecutions()
throws Exception
- Throws:
Exception
testPluginDeclarationsRetainPomOrderAfterInjectionOfDefaultPlugins
public void testPluginDeclarationsRetainPomOrderAfterInjectionOfDefaultPlugins()
throws Exception
- Throws:
Exception
testPluginOrderAfterMergingWithInheritedPlugins
public void testPluginOrderAfterMergingWithInheritedPlugins()
throws Exception
- MNG-4415
- Throws:
Exception
testPluginOrderAfterMergingWithInjectedPlugins
public void testPluginOrderAfterMergingWithInjectedPlugins()
throws Exception
- MNG-4416
- Throws:
Exception
testProjectArtifactIdIsNotInheritedButMandatory
public void testProjectArtifactIdIsNotInheritedButMandatory()
throws Exception
- Throws:
Exception
assertModelEquals
protected void assertModelEquals(PomTestWrapper pom,
Object expected,
String expression)
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.