org.apache.maven.plugins.enforcer
Class TestRequirePluginVersions

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.plugin.testing.AbstractMojoTestCase
                  extended by org.apache.maven.plugins.enforcer.TestRequirePluginVersions
All Implemented Interfaces:
Test

public class TestRequirePluginVersions
extends AbstractMojoTestCase

The Class TestRequirePluginVersions.

Author:
Brian Fox

Field Summary
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
TestRequirePluginVersions()
           
 
Method Summary
 void testCombinePlugins()
          Test combining values from both lists
 void testCombinePlugins1()
          Test combining with an empty list
 void testCombinePlugins2()
          Test combining with a null list
 void testCombinePlugins3()
          Test combining with an empty string
 void testCombinePlugins4()
          Test combining with a null string
 void testCombinePlugins5()
          Test combining with an invalid plugin string
 void testGetAdditionalPlugins()
          Test get additional plugins.
 void testGetAdditionalPluginsEmptySet()
          Test get additional plugins empty set.
 void testGetAdditionalPluginsInvalidFormat()
          Test get additional plugins invalid format.
 void testGetAdditionalPluginsNull()
          Test get additional plugins null.
 void testGetAllPlugins()
          Test get all plugins.
 void testGetUncheckedPlugins()
          Test remove Unchecked plugins.
 void testHasVersionSpecified()
          Test has version specified.
 void testHasVersionSpecifiedWithProperties()
          Test has version specified with properties.
 void testId()
          Test id.
 
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, setUp, setVariableValueToObject
 
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, tearDown
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestRequirePluginVersions

public TestRequirePluginVersions()
Method Detail

testHasVersionSpecified

public void testHasVersionSpecified()
Test has version specified.


testHasVersionSpecifiedWithProperties

public void testHasVersionSpecifiedWithProperties()
Test has version specified with properties.


testGetAllPlugins

public void testGetAllPlugins()
                       throws ArtifactResolutionException,
                              ArtifactNotFoundException,
                              IOException,
                              XmlPullParserException
Test get all plugins.

Throws:
ArtifactResolutionException - the artifact resolution exception
ArtifactNotFoundException - the artifact not found exception
IOException - Signals that an I/O exception has occurred.
XmlPullParserException - the xml pull parser exception

testGetAdditionalPluginsNull

public void testGetAdditionalPluginsNull()
                                  throws MojoExecutionException
Test get additional plugins null.

Throws:
MojoExecutionException - the mojo execution exception

testGetAdditionalPluginsInvalidFormat

public void testGetAdditionalPluginsInvalidFormat()
Test get additional plugins invalid format.


testGetAdditionalPluginsEmptySet

public void testGetAdditionalPluginsEmptySet()
                                      throws MojoExecutionException
Test get additional plugins empty set.

Throws:
MojoExecutionException - the mojo execution exception

testGetAdditionalPlugins

public void testGetAdditionalPlugins()
                              throws MojoExecutionException
Test get additional plugins.

Throws:
MojoExecutionException - the mojo execution exception

testGetUncheckedPlugins

public void testGetUncheckedPlugins()
                             throws MojoExecutionException
Test remove Unchecked plugins.

Throws:
MojoExecutionException - the mojo execution exception

testCombinePlugins

public void testCombinePlugins()
Test combining values from both lists


testCombinePlugins1

public void testCombinePlugins1()
Test combining with an empty list


testCombinePlugins2

public void testCombinePlugins2()
Test combining with a null list


testCombinePlugins3

public void testCombinePlugins3()
Test combining with an empty string


testCombinePlugins4

public void testCombinePlugins4()
Test combining with a null string


testCombinePlugins5

public void testCombinePlugins5()
Test combining with an invalid plugin string


testId

public void testId()
Test id.



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