org.apache.maven.model.interpolation
Class StringSearchModelInterpolatorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.model.interpolation.AbstractModelInterpolatorTest
                  extended by org.apache.maven.model.interpolation.StringSearchModelInterpolatorTest
All Implemented Interfaces:
junit.framework.Test

public class StringSearchModelInterpolatorTest
extends AbstractModelInterpolatorTest

Version:
$Id: StringSearchModelInterpolatorTest.java 1000601 2010-09-23 20:05:09Z bentmann $
Author:
jdcasey, Benjamin Bentmann

Field Summary
protected  ModelInterpolator interpolator
           
 
Constructor Summary
StringSearchModelInterpolatorTest()
           
 
Method Summary
protected  ModelInterpolator createInterpolator()
           
protected  ModelInterpolator createInterpolator(PathTranslator translator)
           
protected  void setUp()
           
 void testConcurrentInterpolation()
           
 void testFinalFieldsExcludedFromInterpolation()
           
 void testInterpolateObjectWithStringArrayField()
           
 void testInterpolateObjectWithStringArrayListField()
           
 void testInterpolateObjectWithStringListField()
           
 void testInterpolateObjectWithStringListFieldAndOneLiteralValue()
           
 void testInterpolateObjectWithStringToStringArrayMapField()
           
 void testInterpolateObjectWithStringToStringMapField()
           
 void testInterpolateObjectWithStringToStringMapFieldAndOneLiteralValue()
           
 void testInterpolateObjectWithUnmodifiableStringListField()
           
 void testInterpolateObjectWithUnmodifiableStringToStringMapField()
           
 void testInterpolateStringArray()
           
 void testLocationTrackerShouldBeExcludedFromInterpolation()
           
 
Methods inherited from class org.apache.maven.model.interpolation.AbstractModelInterpolatorTest
assertColllectorState, assertProblemFree, testBasedir, testBaseUri, testDefaultBuildTimestampFormatShouldParseTimeIn24HourFormat, testEnvarExpressionThatEvaluatesToNullReturnsTheLiteralString, testEnvars, testExpressionThatEvaluatesToNullReturnsTheLiteralString, testShouldInterpolateDependencyVersionToSetSameAsProjectVersion, testShouldInterpolateOrganizationNameCorrectly, testShouldInterpolateSourceDirectoryReferencedFromResourceDirectoryCorrectly, testShouldInterpolateUnprefixedBasedirExpression, testShouldNotInterpolateDependencyVersionWithInvalidReference, testShouldNotThrowExceptionOnReferenceToNonExistentValue, testShouldNotThrowExceptionOnReferenceToValueContainingNakedExpression, testShouldThrowExceptionOnRecursiveScmConnectionReference, testTwoReferences
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, 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
 

Field Detail

interpolator

protected ModelInterpolator interpolator
Constructor Detail

StringSearchModelInterpolatorTest

public StringSearchModelInterpolatorTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class AbstractModelInterpolatorTest
Throws:
Exception

createInterpolator

protected ModelInterpolator createInterpolator(PathTranslator translator)
                                        throws Exception
Specified by:
createInterpolator in class AbstractModelInterpolatorTest
Throws:
Exception

createInterpolator

protected ModelInterpolator createInterpolator()
                                        throws Exception
Specified by:
createInterpolator in class AbstractModelInterpolatorTest
Throws:
Exception

testInterpolateStringArray

public void testInterpolateStringArray()
                                throws Exception
Throws:
Exception

testInterpolateObjectWithStringArrayField

public void testInterpolateObjectWithStringArrayField()
                                               throws Exception
Throws:
Exception

testInterpolateObjectWithStringListField

public void testInterpolateObjectWithStringListField()
                                              throws Exception
Throws:
Exception

testInterpolateObjectWithStringListFieldAndOneLiteralValue

public void testInterpolateObjectWithStringListFieldAndOneLiteralValue()
                                                                throws Exception
Throws:
Exception

testInterpolateObjectWithUnmodifiableStringListField

public void testInterpolateObjectWithUnmodifiableStringListField()
                                                          throws Exception
Throws:
Exception

testInterpolateObjectWithStringArrayListField

public void testInterpolateObjectWithStringArrayListField()
                                                   throws Exception
Throws:
Exception

testInterpolateObjectWithStringToStringMapField

public void testInterpolateObjectWithStringToStringMapField()
                                                     throws Exception
Throws:
Exception

testInterpolateObjectWithStringToStringMapFieldAndOneLiteralValue

public void testInterpolateObjectWithStringToStringMapFieldAndOneLiteralValue()
                                                                       throws Exception
Throws:
Exception

testInterpolateObjectWithUnmodifiableStringToStringMapField

public void testInterpolateObjectWithUnmodifiableStringToStringMapField()
                                                                 throws Exception
Throws:
Exception

testInterpolateObjectWithStringToStringArrayMapField

public void testInterpolateObjectWithStringToStringArrayMapField()
                                                          throws Exception
Throws:
Exception

testConcurrentInterpolation

public void testConcurrentInterpolation()
                                 throws Exception
Throws:
Exception

testFinalFieldsExcludedFromInterpolation

public void testFinalFieldsExcludedFromInterpolation()

testLocationTrackerShouldBeExcludedFromInterpolation

public void testLocationTrackerShouldBeExcludedFromInterpolation()


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