org.kuali.rice.ksb.messaging
Class ServiceCallClusterTest

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.ServiceCallClusterTest
All Implemented Interfaces:
MethodAware

public class ServiceCallClusterTest
extends KSBTestCase

Verify services in a cluster are being both being called Verify a locally deployed service is always called instead of a remote service in a cluster Verify that a service in a cluster fails over when one of the services in the cluster goes down.

Author:
Kuali Rice Team (rice.collab@kuali.org)

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.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
ServiceCallClusterTest()
           
 
Method Summary
 void setUp()
           
 boolean startClient1()
           
 boolean startClient2()
           
 void testClustering()
           
 void testDefaultToLocalService()
           
 void testServiceFailOver()
          The services published to the service def table when ServiceCallClusterTest runs used to have have two different application IDs, TestCl1 and TestCl2.
 void testSOAPClustering()
           
 void testSOAPFailOver()
           
 
Methods inherited from class org.kuali.rice.ksb.test.KSBTestCase
disableJta, getPerTestLifecycles, getSpringContextResourceLoader, getTestClient1, getTestClient2, setSpringContextResourceLoader
 
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, getKRADDefaultSuiteTestData, loadSuiteTestData
 
Methods inherited from class org.kuali.rice.test.RiceTestCase
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getLoadApplicationLifecycle, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getSuiteLifecycles, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, 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

ServiceCallClusterTest

public ServiceCallClusterTest()
Method Detail

startClient1

public boolean startClient1()
Overrides:
startClient1 in class KSBTestCase

startClient2

public boolean startClient2()
Overrides:
startClient2 in class KSBTestCase

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class KSBTestCase
Throws:
Exception

testSOAPClustering

public void testSOAPClustering()
                        throws Exception
Throws:
Exception

testClustering

public void testClustering()
                    throws Exception
Throws:
Exception

testServiceFailOver

public void testServiceFailOver()
                         throws Exception
The services published to the service def table when ServiceCallClusterTest runs used to have have two different application IDs, TestCl1 and TestCl2. A fix was contributed from IU so that when a service fails, it fails over to services only using the same application ID. This is correct, but it made the tests no longer work. The tests now bring up services with the same application ID, TestCl1.

Throws:
Exception

testSOAPFailOver

public void testSOAPFailOver()
                      throws Exception
Throws:
Exception

testDefaultToLocalService

public void testDefaultToLocalService()
                               throws Exception
Throws:
Exception


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.