org.springframework.extensions.config.xml
Class XMLConfigServiceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.extensions.config.util.BaseTest
              extended by org.springframework.extensions.config.xml.XMLConfigServiceTest
All Implemented Interfaces:
junit.framework.Test

public class XMLConfigServiceTest
extends BaseTest

Unit tests for the XML based configuration service

Author:
gavinc

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

XMLConfigServiceTest

public XMLConfigServiceTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception
See Also:
TestCase.setUp()

testConfig

public void testConfig()
Tests the config.xml file


testConfigProperties

public void testConfigProperties()
Tests the config.xml file properties


testMissingFiles

public void testMissingFiles()
Tests the absence of referenced files


testGetNamedChild

public void testGetNamedChild()
Tests the retrieval of a named child


testReset

public void testReset()
Tests the config service's ability to reset


xtestClasspathSource

public void xtestClasspathSource()
Tests the use of the class path source config TODO: Enable this test when we have a classpath config resource to load!


xtestHTTPSource

public void xtestHTTPSource()
Tests the use of the HTTP source config TODO: Enable this test when we have an HTTP config resource to load!


testJarSource

public void testJarSource()
Tests loading config from a known JAR file


xtestMultiJarSource

public 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. the continuous build, so until we have a way to include adhoc items disable this test.


testMultiConfig

public void testMultiConfig()
Tests the config service's ability to load multiple files and merge the results


testAreaConfig

public void testAreaConfig()
Tests the config service's ability to restrict searches to a named area


testMerging

public void testMerging()
Tests the merge features of the config service


testReplace

public void testReplace()
Tests the replace feature of the config service



Copyright © 2009 SpringSource, Inc. All Rights Reserved.