org.apache.maven.project
Class ModelUtilsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.project.ModelUtilsTest
All Implemented Interfaces:
junit.framework.Test

public class ModelUtilsTest
extends junit.framework.TestCase


Constructor Summary
ModelUtilsTest()
           
 
Method Summary
 void testShouldInheritOnePluginWithExecution()
           
 void testShouldKeepOriginalPluginExecutionOrdering()
          Verifies MNG-1499: The ordering of plugin executions should also be in the specified order.
 void testShouldKeepOriginalPluginOrdering()
          Verifies MNG-1499: The order of the merged list should be the plugins specified by the parent followed by the child list.
 void testShouldMergeInheritedPluginHavingExecutionWithLocalPlugin()
           
 void testShouldMergeOnePluginWithInheritExecutionWithoutDuplicatingPluginInList()
           
 void testShouldMergePluginConfigurationSubItemsWithMergeAttributeSet()
           
 void testShouldMergePluginExecutionWhenExecInheritedIsTrueAndTreatAsInheritanceIsTrue()
           
 void testShouldMergePluginWithDifferentExecutionFromParentWithoutDuplicatingPluginInList()
           
 void testShouldNotInheritPluginWithInheritanceSetToFalse()
           
 void testShouldNOTMergeInheritedPluginHavingInheritEqualFalse()
           
 void testShouldNotMergePluginExecutionWhenExecInheritedIsFalseAndTreatAsInheritanceIsTrue()
           
 void testShouldNotMergePluginExecutionWhenPluginInheritedIsFalseAndTreatAsInheritanceIsTrue()
           
 void testShouldOverwritePluginConfigurationSubItemsByDefault()
           
 void testShouldPreserveChildOrderingOfPluginsAfterParentMerge()
          Test that this is the resulting ordering of plugins after merging: Given: parent: X -> A -> B -> D -> E child: Y -> A -> C -> D -> F Result: X -> Y -> A -> B -> C -> D -> E -> F
 void testShouldUseMainPluginDependencyVersionOverManagedDepVersion()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelUtilsTest

public ModelUtilsTest()
Method Detail

testShouldUseMainPluginDependencyVersionOverManagedDepVersion

public void testShouldUseMainPluginDependencyVersionOverManagedDepVersion()

testShouldNotInheritPluginWithInheritanceSetToFalse

public void testShouldNotInheritPluginWithInheritanceSetToFalse()

testShouldPreserveChildOrderingOfPluginsAfterParentMerge

public void testShouldPreserveChildOrderingOfPluginsAfterParentMerge()
Test that this is the resulting ordering of plugins after merging: Given: parent: X -> A -> B -> D -> E child: Y -> A -> C -> D -> F Result: X -> Y -> A -> B -> C -> D -> E -> F


testShouldInheritOnePluginWithExecution

public void testShouldInheritOnePluginWithExecution()

testShouldMergeInheritedPluginHavingExecutionWithLocalPlugin

public void testShouldMergeInheritedPluginHavingExecutionWithLocalPlugin()

testShouldMergeOnePluginWithInheritExecutionWithoutDuplicatingPluginInList

public void testShouldMergeOnePluginWithInheritExecutionWithoutDuplicatingPluginInList()

testShouldMergePluginWithDifferentExecutionFromParentWithoutDuplicatingPluginInList

public void testShouldMergePluginWithDifferentExecutionFromParentWithoutDuplicatingPluginInList()

testShouldNOTMergeInheritedPluginHavingInheritEqualFalse

public void testShouldNOTMergeInheritedPluginHavingInheritEqualFalse()

testShouldKeepOriginalPluginOrdering

public void testShouldKeepOriginalPluginOrdering()
Verifies MNG-1499: The order of the merged list should be the plugins specified by the parent followed by the child list.


testShouldKeepOriginalPluginExecutionOrdering

public void testShouldKeepOriginalPluginExecutionOrdering()
Verifies MNG-1499: The ordering of plugin executions should also be in the specified order.


testShouldOverwritePluginConfigurationSubItemsByDefault

public void testShouldOverwritePluginConfigurationSubItemsByDefault()
                                                             throws XmlPullParserException,
                                                                    IOException
Throws:
XmlPullParserException
IOException

testShouldMergePluginConfigurationSubItemsWithMergeAttributeSet

public void testShouldMergePluginConfigurationSubItemsWithMergeAttributeSet()
                                                                     throws XmlPullParserException,
                                                                            IOException
Throws:
XmlPullParserException
IOException

testShouldNotMergePluginExecutionWhenExecInheritedIsFalseAndTreatAsInheritanceIsTrue

public void testShouldNotMergePluginExecutionWhenExecInheritedIsFalseAndTreatAsInheritanceIsTrue()

testShouldNotMergePluginExecutionWhenPluginInheritedIsFalseAndTreatAsInheritanceIsTrue

public void testShouldNotMergePluginExecutionWhenPluginInheritedIsFalseAndTreatAsInheritanceIsTrue()

testShouldMergePluginExecutionWhenExecInheritedIsTrueAndTreatAsInheritanceIsTrue

public void testShouldMergePluginExecutionWhenExecInheritedIsTrueAndTreatAsInheritanceIsTrue()


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.