org.kuali.rice.ksb.messaging
Class RemotedServiceRegistryTest

java.lang.Object
  extended by org.kuali.rice.test.BaseRiceTestCase
      extended by org.kuali.rice.test.RiceTestCase
          extended by org.kuali.rice.test.RiceInternalSuiteDataTestCase
              extended by org.kuali.rice.test.BaseModuleTestCase
                  extended by org.kuali.rice.test.BaselineTestCase
                      extended by org.kuali.rice.ksb.test.KSBTestCase
                          extended by org.kuali.rice.ksb.messaging.RemotedServiceRegistryTest
All Implemented Interfaces:
MethodAware

public class RemotedServiceRegistryTest
extends KSBTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.test.BaselineTestCase
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
 
Field Summary
 
Fields inherited from class org.kuali.rice.ksb.test.KSBTestCase
MOCK_JAVA_SECURITY_MANAGEMENT_SERVICE_BEAN_ID
 
Fields inherited from class org.kuali.rice.test.BaselineTestCase
dirty
 
Fields inherited from class org.kuali.rice.test.BaseModuleTestCase
LOG, moduleName
 
Fields inherited from class org.kuali.rice.test.RiceTestCase
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
 
Fields inherited from class org.kuali.rice.test.BaseRiceTestCase
log, method
 
Constructor Summary
RemotedServiceRegistryTest()
           
 
Method Summary
 void testMultipleManualRefreshes()
           
 void testRestartAddedService()
          Verifies that a service added to the configuration when the app is offline will be added when the app starts.
 void testRestartServiceModified()
          Verifies that a service modified when the app is offline is reflected in when the app comes online.
 void testRestartServiceRemoved()
          Verifies that a service is removed when it is removed from the config when app is offline and started again.
 void testServiceRefreshAddedService()
          Verifies when service is added to configuration that differs from the config in the db the change is reflected.
 void testServiceRefreshServiceModified()
          Verifies when a node marking a service as dead that service is marked alive when this node refreshes it's services
 void testServiceRefreshServiceRemoved()
           
 
Methods inherited from class org.kuali.rice.ksb.test.KSBTestCase
disableJta, getPerTestLifecycles, getSpringContextResourceLoader, getTestClient1, getTestClient2, setSpringContextResourceLoader, setUp, startClient1, startClient2
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, getPerTestTablesNotToClear, getPerTestTablesToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles
 
Methods inherited from class org.kuali.rice.test.BaseModuleTestCase
getModuleName
 
Methods inherited from class org.kuali.rice.test.RiceInternalSuiteDataTestCase
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKNSDefaultSuiteTestData, loadSuiteTestData
 
Methods inherited from class org.kuali.rice.test.RiceTestCase
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getLoadApplicationLifecycle, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getSuiteLifecycles, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
 
Methods inherited from class org.kuali.rice.test.BaseRiceTestCase
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemotedServiceRegistryTest

public RemotedServiceRegistryTest()
Method Detail

testServiceRefreshAddedService

public void testServiceRefreshAddedService()
                                    throws Exception
Verifies when service is added to configuration that differs from the config in the db the change is reflected.

Throws:
Exception

testServiceRefreshServiceRemoved

public void testServiceRefreshServiceRemoved()
                                      throws Exception
Throws:
Exception

testRestartAddedService

public void testRestartAddedService()
                             throws Exception
Verifies that a service added to the configuration when the app is offline will be added when the app starts.

Throws:
Exception

testRestartServiceRemoved

public void testRestartServiceRemoved()
                               throws Exception
Verifies that a service is removed when it is removed from the config when app is offline and started again.

Throws:
Exception

testRestartServiceModified

public void testRestartServiceModified()
                                throws Exception
Verifies that a service modified when the app is offline is reflected in when the app comes online. Exact scenario: the service is set alive=false (presumably by being down and another node marking the service as alive=false). The node comes back and marks it's service as alive.

Throws:
Exception

testServiceRefreshServiceModified

public void testServiceRefreshServiceModified()
                                       throws Exception
Verifies when a node marking a service as dead that service is marked alive when this node refreshes it's services

Throws:
Exception

testMultipleManualRefreshes

public void testMultipleManualRefreshes()
                                 throws Exception
Throws:
Exception


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.