|
||||||||||
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.springframework.extensions.config.util.BaseTest org.springframework.extensions.config.xml.XMLConfigServiceTest
public class XMLConfigServiceTest
Unit tests for the XML based configuration service
Constructor Summary | |
---|---|
XMLConfigServiceTest()
|
Method Summary | |
---|---|
protected void |
setUp()
|
void |
testAreaConfig()
Tests the config service's ability to restrict searches to a named area |
void |
testConfig()
Tests the config.xml file |
void |
testConfigProperties()
Tests the config.xml file properties |
void |
testGetNamedChild()
Tests the retrieval of a named child |
void |
testJarSource()
Tests loading config from a known JAR file |
void |
testMerging()
Tests the merge features of the config service |
void |
testMissingFiles()
Tests the absence of referenced files |
void |
testMultiConfig()
Tests the config service's ability to load multiple files and merge the results |
void |
testReplace()
Tests the replace feature of the config service |
void |
testReset()
Tests the config service's ability to reset |
void |
xtestClasspathSource()
Tests the use of the class path source config TODO: Enable this test when we have a classpath config resource to load! |
void |
xtestHTTPSource()
Tests the use of the HTTP source config TODO: Enable this test when we have an HTTP config resource to load! |
void |
xtestMultiJarSource()
Tests loading a file from within any JAR file on the classpath TODO: This needs the JAR file to be in the classpath when run via ant i.e. |
Methods inherited from class org.springframework.extensions.config.util.BaseTest |
---|
assertFileIsValid, getResourcesDir, initXMLConfigService, initXMLConfigService, initXMLConfigService |
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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XMLConfigServiceTest()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
TestCase.setUp()
public void testConfig()
public void testConfigProperties()
public void testMissingFiles()
public void testGetNamedChild()
public void testReset()
public void xtestClasspathSource()
public void xtestHTTPSource()
public void testJarSource()
public void xtestMultiJarSource()
public void testMultiConfig()
public void testAreaConfig()
public void testMerging()
public void testReplace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |