org.apache.maven.plugin
Class PluginParameterExpressionEvaluatorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.AbstractCoreMavenComponentTestCase
                  extended by org.apache.maven.plugin.PluginParameterExpressionEvaluatorTest
All Implemented Interfaces:
Test

public class PluginParameterExpressionEvaluatorTest
extends AbstractCoreMavenComponentTestCase

Author:
Jason van Zyl

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.maven.AbstractCoreMavenComponentTestCase
AbstractCoreMavenComponentTestCase.PluginBuilder, AbstractCoreMavenComponentTestCase.ProjectBuilder
 
Field Summary
 
Fields inherited from class org.apache.maven.AbstractCoreMavenComponentTestCase
projectBuilder, repositorySystem
 
Constructor Summary
PluginParameterExpressionEvaluatorTest()
           
 
Method Summary
protected  Artifact createArtifact(String groupId, String artifactId, String version)
           
protected  String getProjectsDirectory()
           
 void setUp()
           
protected  void tearDown()
           
 void testBasedirExtractionWithMissingProject()
           
 void testEscapedVariablePassthrough()
           
 void testEscapedVariablePassthroughInLargerExpression()
           
 void testLocalRepositoryExtraction()
           
 void testMissingPOMPropertyRefInLargerExpression()
           
 void testMultipleSubExpressionsInLargerExpression()
           
 void testPluginArtifactIdExpressionReference()
           
 void testPluginArtifactMapExpressionReference()
           
 void testPluginArtifactsExpressionReference()
           
 void testPluginDescriptorExpressionReference()
           
 void testPOMPropertyExtractionWithMissingProject_WithDotNotation()
           
 void testShouldExtractPluginArtifacts()
           
 void testTwoExpressions()
           
 void testValueExtractionFromSystemPropertiesWithMissingProject_WithDotNotation()
           
 void testValueExtractionFromSystemPropertiesWithMissingProject()
           
 void testValueExtractionWithAPomValueContainingAPath()
           
 
Methods inherited from class org.apache.maven.AbstractCoreMavenComponentTestCase
createMavenExecutionRequest, createMavenSession, createMavenSession, createStubMavenProject, customizeContainerConfiguration, getLocalRepository, getPluginArtifactRepositories, getProject, getRemoteRepositories, initRepoSession
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
customizeComponentConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer
 
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

PluginParameterExpressionEvaluatorTest

public PluginParameterExpressionEvaluatorTest()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class AbstractCoreMavenComponentTestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class AbstractCoreMavenComponentTestCase
Throws:
Exception

testPluginDescriptorExpressionReference

public void testPluginDescriptorExpressionReference()
                                             throws Exception
Throws:
Exception

testPluginArtifactsExpressionReference

public void testPluginArtifactsExpressionReference()
                                            throws Exception
Throws:
Exception

testPluginArtifactMapExpressionReference

public void testPluginArtifactMapExpressionReference()
                                              throws Exception
Throws:
Exception

testPluginArtifactIdExpressionReference

public void testPluginArtifactIdExpressionReference()
                                             throws Exception
Throws:
Exception

testValueExtractionWithAPomValueContainingAPath

public void testValueExtractionWithAPomValueContainingAPath()
                                                     throws Exception
Throws:
Exception

testEscapedVariablePassthrough

public void testEscapedVariablePassthrough()
                                    throws Exception
Throws:
Exception

testEscapedVariablePassthroughInLargerExpression

public void testEscapedVariablePassthroughInLargerExpression()
                                                      throws Exception
Throws:
Exception

testMultipleSubExpressionsInLargerExpression

public void testMultipleSubExpressionsInLargerExpression()
                                                  throws Exception
Throws:
Exception

testMissingPOMPropertyRefInLargerExpression

public void testMissingPOMPropertyRefInLargerExpression()
                                                 throws Exception
Throws:
Exception

testPOMPropertyExtractionWithMissingProject_WithDotNotation

public void testPOMPropertyExtractionWithMissingProject_WithDotNotation()
                                                                 throws Exception
Throws:
Exception

testBasedirExtractionWithMissingProject

public void testBasedirExtractionWithMissingProject()
                                             throws Exception
Throws:
Exception

testValueExtractionFromSystemPropertiesWithMissingProject

public void testValueExtractionFromSystemPropertiesWithMissingProject()
                                                               throws Exception
Throws:
Exception

testValueExtractionFromSystemPropertiesWithMissingProject_WithDotNotation

public void testValueExtractionFromSystemPropertiesWithMissingProject_WithDotNotation()
                                                                               throws Exception
Throws:
Exception

testLocalRepositoryExtraction

public void testLocalRepositoryExtraction()
                                   throws Exception
Throws:
Exception

testTwoExpressions

public void testTwoExpressions()
                        throws Exception
Throws:
Exception

testShouldExtractPluginArtifacts

public void testShouldExtractPluginArtifacts()
                                      throws Exception
Throws:
Exception

createArtifact

protected Artifact createArtifact(String groupId,
                                  String artifactId,
                                  String version)
                           throws Exception
Throws:
Exception

getProjectsDirectory

protected String getProjectsDirectory()
Specified by:
getProjectsDirectory in class AbstractCoreMavenComponentTestCase


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