org.apache.maven.project.interpolation
Class AbstractModelInterpolatorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.project.interpolation.AbstractModelInterpolatorTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
RegexBasedModelInterpolatorTest, StringSearchModelInterpolatorTest

public abstract class AbstractModelInterpolatorTest
extends junit.framework.TestCase

Version:
$Id: AbstractModelInterpolatorTest.java 769023 2009-04-27 15:08:43Z brett $
Author:
jdcasey

Constructor Summary
AbstractModelInterpolatorTest()
           
 
Method Summary
protected abstract  ModelInterpolator createInterpolator()
           
protected abstract  ModelInterpolator createInterpolator(PathTranslator translator)
           
protected  void setUp()
           
 void testBasedir()
           
 void testBaseUri()
           
 void testDefaultBuildTimestampFormatShouldParseTimeIn24HourFormat()
           
 void testEnvarExpressionThatEvaluatesToNullReturnsTheLiteralString()
           
 void testEnvars()
           
 void testExpressionThatEvaluatesToNullReturnsTheLiteralString()
           
 void testShouldInterpolateDependencyVersionToSetSameAsProjectVersion()
           
 void testShouldInterpolateOrganizationNameCorrectly()
           
 void testShouldInterpolateSourceDirectoryReferencedFromResourceDirectoryCorrectly()
           
 void testShouldInterpolateUnprefixedBasedirExpression()
           
 void testShouldNotInterpolateDependencyVersionWithInvalidReference()
           
 void testShouldNotThrowExceptionOnReferenceToNonExistentValue()
           
 void testShouldNotThrowExceptionOnReferenceToValueContainingNakedExpression()
           
 void testShouldThrowExceptionOnRecursiveScmConnectionReference()
           
 void testTwoLevelRecursiveBasedirAlignedExpression()
           
 void testTwoReferences()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractModelInterpolatorTest

public AbstractModelInterpolatorTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

testDefaultBuildTimestampFormatShouldParseTimeIn24HourFormat

public void testDefaultBuildTimestampFormatShouldParseTimeIn24HourFormat()

testShouldNotThrowExceptionOnReferenceToNonExistentValue

public void testShouldNotThrowExceptionOnReferenceToNonExistentValue()
                                                              throws Exception
Throws:
Exception

testShouldThrowExceptionOnRecursiveScmConnectionReference

public void testShouldThrowExceptionOnRecursiveScmConnectionReference()
                                                               throws Exception
Throws:
Exception

testShouldNotThrowExceptionOnReferenceToValueContainingNakedExpression

public void testShouldNotThrowExceptionOnReferenceToValueContainingNakedExpression()
                                                                            throws Exception
Throws:
Exception

testShouldInterpolateOrganizationNameCorrectly

public void testShouldInterpolateOrganizationNameCorrectly()
                                                    throws Exception
Throws:
Exception

testShouldInterpolateDependencyVersionToSetSameAsProjectVersion

public void testShouldInterpolateDependencyVersionToSetSameAsProjectVersion()
                                                                     throws Exception
Throws:
Exception

testShouldNotInterpolateDependencyVersionWithInvalidReference

public void testShouldNotInterpolateDependencyVersionWithInvalidReference()
                                                                   throws Exception
Throws:
Exception

testTwoReferences

public void testTwoReferences()
                       throws Exception
Throws:
Exception

testBasedir

public void testBasedir()
                 throws Exception
Throws:
Exception

testBaseUri

public void testBaseUri()
                 throws Exception
Throws:
Exception

testEnvars

public void testEnvars()
                throws Exception
Throws:
Exception

testEnvarExpressionThatEvaluatesToNullReturnsTheLiteralString

public void testEnvarExpressionThatEvaluatesToNullReturnsTheLiteralString()
                                                                   throws Exception
Throws:
Exception

testExpressionThatEvaluatesToNullReturnsTheLiteralString

public void testExpressionThatEvaluatesToNullReturnsTheLiteralString()
                                                              throws Exception
Throws:
Exception

testShouldInterpolateSourceDirectoryReferencedFromResourceDirectoryCorrectly

public void testShouldInterpolateSourceDirectoryReferencedFromResourceDirectoryCorrectly()
                                                                                  throws Exception
Throws:
Exception

testShouldInterpolateUnprefixedBasedirExpression

public void testShouldInterpolateUnprefixedBasedirExpression()
                                                      throws Exception
Throws:
Exception

testTwoLevelRecursiveBasedirAlignedExpression

public void testTwoLevelRecursiveBasedirAlignedExpression()
                                                   throws Exception
Throws:
Exception

createInterpolator

protected abstract ModelInterpolator createInterpolator(PathTranslator translator)
                                                 throws Exception
Throws:
Exception

createInterpolator

protected abstract ModelInterpolator createInterpolator()
                                                 throws Exception
Throws:
Exception


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