|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--org.arch4j.property.PropertyProviderTest
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.
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 |
public PropertyProviderTest(String name)
Method Detail |
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void delete(File file)
protected void clearProperties()
protected void setUpForOldStyle()
protected void createPropertyFile(File file) throws IOException
IOException
protected void setUpForNewStyle()
protected void createXMLPropertyFile(File file) throws IOException
IOException
public void testOldStyleCreation()
public void testNewStyleCreation()
public void testGetPropertyOldStyle()
public void testGetPropertyNewStyle()
public void testGetPropertyOldStyleViaClasspath()
public void testGetPropertyNewStyleViaClasspath()
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |