org.apache.maven.plugin.resources
Class EnhancedPropertyUtilsTest

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.plugin.resources.AbstractPropertyUtilsTest
                      extended by org.apache.maven.plugin.resources.EnhancedPropertyUtilsTest
All Implemented Interfaces:
junit.framework.Test

public class EnhancedPropertyUtilsTest
extends AbstractPropertyUtilsTest

Tests PropertyUtils.loadPropertyFile(File, Properties).

Author:
William Ferguson

Field Summary
 
Fields inherited from class org.apache.maven.plugin.resources.AbstractPropertyUtilsTest
propertyFile, validationFile, validationProp
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
EnhancedPropertyUtilsTest()
           
 
Method Summary
protected  File getPropertyFile()
           
protected  File getValidationFile()
           
protected  void setUp()
           
 void testBasicLoadProperty()
          Load property test case can be adjusted by modifying the enhanced.properties and enhanced_validation properties.
 void testException()
          Load property test case can be adjusted by modifying the enhanced.properties and enhanced_validation properties.
 void testNonExistentProperty()
          Load property test case can be adjusted by modifying the enhanced.properties and enhanced_validation properties.
 
Methods inherited from class org.apache.maven.plugin.resources.AbstractPropertyUtilsTest
tearDown, validateProperties
 
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, 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
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnhancedPropertyUtilsTest

public EnhancedPropertyUtilsTest()
Method Detail

setUp

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

getPropertyFile

protected File getPropertyFile()
Specified by:
getPropertyFile in class AbstractPropertyUtilsTest

getValidationFile

protected File getValidationFile()
Specified by:
getValidationFile in class AbstractPropertyUtilsTest

testBasicLoadProperty

public void testBasicLoadProperty()
                           throws Exception
Load property test case can be adjusted by modifying the enhanced.properties and enhanced_validation properties.

Throws:
Exception

testNonExistentProperty

public void testNonExistentProperty()
                             throws Exception
Load property test case can be adjusted by modifying the enhanced.properties and enhanced_validation properties.

Throws:
Exception

testException

public void testException()
                   throws Exception
Load property test case can be adjusted by modifying the enhanced.properties and enhanced_validation properties.

Throws:
Exception


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