Arch4J 1.1

org.arch4j.property
Class PropertyProviderTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.arch4j.property.PropertyProviderTest
All Implemented Interfaces:
junit.framework.Test

public class PropertyProviderTest
extends junit.framework.TestCase

This class tests the PropertyProvider. Make sure that the temporary directory below (variable tmpDir) is in your classpath so that the tests that look for files in the classpath work.

Version:
$Revision: 1.2 $
Author:
$Author: rgreinke $

Constructor Summary
PropertyProviderTest(String name)
          Constructs a test case with the given name.
 
Method Summary
protected  void clearProperties()
           
protected  void createPropertyFile(File file)
           
protected  void createXMLPropertyFile(File file)
           
protected  void delete(File file)
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void setUpForNewStyle()
           
protected  void setUpForOldStyle()
           
 void testGetPropertyNewStyle()
           
 void testGetPropertyNewStyleViaClasspath()
           
 void testGetPropertyOldStyle()
           
 void testGetPropertyOldStyleViaClasspath()
           
 void testNewStyleCreation()
           
 void testOldStyleCreation()
           
 
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

PropertyProviderTest

public PropertyProviderTest(String name)
Constructs a test case with the given name.

Method Detail

setUp

protected void setUp()
              throws Exception
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Overrides:
setUp in class junit.framework.TestCase
Exception

delete

protected void delete(File file)

clearProperties

protected void clearProperties()

setUpForOldStyle

protected void setUpForOldStyle()

createPropertyFile

protected void createPropertyFile(File file)
                           throws IOException
IOException

setUpForNewStyle

protected void setUpForNewStyle()

createXMLPropertyFile

protected void createXMLPropertyFile(File file)
                              throws IOException
IOException

testOldStyleCreation

public void testOldStyleCreation()

testNewStyleCreation

public void testNewStyleCreation()

testGetPropertyOldStyle

public void testGetPropertyOldStyle()

testGetPropertyNewStyle

public void testGetPropertyNewStyle()

testGetPropertyOldStyleViaClasspath

public void testGetPropertyOldStyleViaClasspath()

testGetPropertyNewStyleViaClasspath

public void testGetPropertyNewStyleViaClasspath()

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.