org.ourgrid.common.config
Class ConfigurationTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.common.config.ConfigurationTest
All Implemented Interfaces:
junit.framework.Test, CommonTest, FastTest, PreCommitTest, SelectiveTest, StressTest

public class ConfigurationTest
extends junit.framework.TestCase
implements CommonTest

Test some features of Configuration class.


Constructor Summary
ConfigurationTest()
           
 
Method Summary
protected  void setUp()
          Reset the configuration
protected  void tearDown()
          Reset the configuration
 void testLoadWrongConfiguration()
           
 void testMyGridConfigurrationInstance()
          Verify if the MyGridConfiguration is correctly loaded
 void testOurgridConfigurrationInstance()
          Verify if the OurgridConfiguration is correctly loaded
 void testUserAgentConfigurrationInstance()
          Verify if the OurgridConfiguration is correctly loaded
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Constructor Detail

ConfigurationTest

public ConfigurationTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Reset the configuration

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Reset the configuration

Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testOurgridConfigurrationInstance

public void testOurgridConfigurrationInstance()
Verify if the OurgridConfiguration is correctly loaded


testUserAgentConfigurrationInstance

public void testUserAgentConfigurrationInstance()
Verify if the OurgridConfiguration is correctly loaded


testMyGridConfigurrationInstance

public void testMyGridConfigurrationInstance()
Verify if the MyGridConfiguration is correctly loaded


testLoadWrongConfiguration

public void testLoadWrongConfiguration()