com.ail.coretest
Class TestCoreConfigReset

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.ail.coretest.TestCoreConfigReset
All Implemented Interfaces:
CoreUser, java.io.Serializable, junit.framework.Test

public class TestCoreConfigReset
extends junit.framework.TestCase
implements CoreUser

The tests defined here exercise the Core system's factory. They use the Core class as an Service or core client would. Note: These tests assume that the JDBCConfigurationLoader is being used.

Version:
$Revision: 1.7 $
See Also:
Serialized Form

Constructor Summary
TestCoreConfigReset(java.lang.String name)
          Constructs a test case with the given name.
 
Method Summary
 java.lang.String getConfigurationNamespace()
          Retrieve the configuration namespace used by this class.
 java.security.Principal getSecurityPrincipal()
          Get the security principal associated with this instance.
 VersionEffectiveDate getVersionEffectiveDate()
          Method demanded by the CoreUser interface.
static void main(java.lang.String[] args)
           
static junit.framework.Test suite()
           
 void testConfigServerReset()
          Test Configuration Server's reset
 void testCoreConfigReset()
          Test that the core's configuration can be reset.
 void testCoreProxyConfigReset()
          Test that the CoreProxy's configuration can be reset.
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestCoreConfigReset

public TestCoreConfigReset(java.lang.String name)
Constructs a test case with the given name.

Method Detail

suite

public static junit.framework.Test suite()

main

public static void main(java.lang.String[] args)

getVersionEffectiveDate

public VersionEffectiveDate getVersionEffectiveDate()
Method demanded by the CoreUser interface.

Specified by:
getVersionEffectiveDate in interface CoreUser
Returns:
A date to use to selecte the corrent version of config info.

getSecurityPrincipal

public java.security.Principal getSecurityPrincipal()
Get the security principal associated with this instance.

Specified by:
getSecurityPrincipal in interface CoreUser
Returns:
The associated security principal - if defined, null otherwise.

getConfigurationNamespace

public java.lang.String getConfigurationNamespace()
Description copied from interface: CoreUser
Retrieve the configuration namespace used by this class. This namespace is simply a unique string used by the class to identify its configuration.

Specified by:
getConfigurationNamespace in interface CoreUser
Returns:
Namespace string

testCoreConfigReset

public void testCoreConfigReset()
                         throws java.lang.Exception
Test that the core's configuration can be reset.

testCoreProxyConfigReset

public void testCoreProxyConfigReset()
                              throws java.lang.Exception
Test that the CoreProxy's configuration can be reset.

Throws:
java.lang.Exception

testConfigServerReset

public void testConfigServerReset()
                           throws java.lang.Exception
Test Configuration Server's reset

Throws:
java.lang.Exception