com.objectwave.configuration.xml
Class XmlConfigurationService.Test

java.lang.Object
  |
  +--com.objectwave.test.UnitTestBaseImpl
        |
        +--com.objectwave.configuration.xml.XmlConfigurationService.Test
All Implemented Interfaces:
UnitTest
Enclosing class:
XmlConfigurationService

public static class XmlConfigurationService.Test
extends UnitTestBaseImpl


Field Summary
 
Fields inherited from class com.objectwave.test.UnitTestBaseImpl
testContext
 
Constructor Summary
XmlConfigurationService.Test()
           
 
Method Summary
static void main(java.lang.String[] args)
          The main program for the Test class
 void setUp(java.lang.String testName, TestContext context)
          The JUnit setup method
 void tearDown(TestContext context)
          The teardown method for JUnit
 void testDefaultBootstrap()
          Final test of default approach
 void testDefaultInSourceLocation()
          A unit test for JUnit
 void testGetPropHolder()
          A unit test for JUnit
 void testGetXmlInputSource()
          A unit test for JUnit
 void testGetXmlInputSourceWithName()
           
 void testNoInputSource()
          Test the case where there is no XML file to locate.
 void testSmartGetPropHolder()
          A unit test for JUnit
 
Methods inherited from class com.objectwave.test.UnitTestBaseImpl
createTest, removeFile, writeFile, writeFileResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlConfigurationService.Test

public XmlConfigurationService.Test()
Method Detail

main

public static void main(java.lang.String[] args)
The main program for the Test class

Parameters:
args - The command line arguments

setUp

public void setUp(java.lang.String testName,
                  TestContext context)
           throws java.lang.Exception
The JUnit setup method

Specified by:
setUp in interface UnitTest
Overrides:
setUp in class UnitTestBaseImpl
Parameters:
testName - The new Up value
context - The new Up value
Throws:
java.lang.Exception

tearDown

public void tearDown(TestContext context)
The teardown method for JUnit

Specified by:
tearDown in interface UnitTest
Overrides:
tearDown in class UnitTestBaseImpl
Parameters:
context -

testDefaultBootstrap

public void testDefaultBootstrap()
                          throws java.lang.Exception
Final test of default approach

Throws:
java.lang.Exception

testDefaultInSourceLocation

public void testDefaultInSourceLocation()
                                 throws java.lang.Exception
A unit test for JUnit

Throws:
java.lang.Exception

testSmartGetPropHolder

public void testSmartGetPropHolder()
                            throws java.lang.Exception
A unit test for JUnit

Throws:
java.lang.Exception

testGetPropHolder

public void testGetPropHolder()
                       throws java.lang.Exception
A unit test for JUnit

Throws:
java.lang.Exception

testNoInputSource

public void testNoInputSource()
                       throws java.lang.Exception
Test the case where there is no XML file to locate. Configuration should NOT require XML files.

Throws:
java.lang.Exception

testGetXmlInputSource

public void testGetXmlInputSource()
                           throws java.lang.Exception
A unit test for JUnit

Throws:
java.lang.Exception

testGetXmlInputSourceWithName

public void testGetXmlInputSourceWithName()
                                   throws java.lang.Exception
java.lang.Exception