org.kuali.rice.kew.useroptions
Class UserOptionsServiceTest

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.kew.test.KEWTestCase
                          extended by org.kuali.rice.kew.useroptions.UserOptionsServiceTest
All Implemented Interfaces:
MethodAware

public class UserOptionsServiceTest
extends KEWTestCase

Test class for {link@ UserOptionsServiceImpl} Note not all methods for UserOptionsServiceImpl are tested in this test class, some methods are tested within the PreferencesServiceTest test class


Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.kew.test.KEWTestCase
KEWTestCase.BootstrapTest, KEWTestCase.ClearCacheLifecycle
 
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
UserOptionsServiceTest()
           
 
Method Summary
 void testFindByUserQualified()
          Test to ensure findByUserQualified method is filtering results with the given principal id and likeString.
 void testRetrieveEmailPreferenceUserOptions()
          Test retrieveEmailPreferenceUserOptions method is filtering results with the given principal id and email setting
 void testUserOptionsSaveWithOptionMap()
          Test save method when a principal id and a Map keyed by option ids and option values as the mapped value
 void testUserOptionsSaveWithPrincipalIdOptionIdOptionVal()
          Test save method when a principal id, option id, and option value are given
 
Methods inherited from class org.kuali.rice.kew.test.KEWTestCase
clearCacheManagers, getGroupIdForName, getLoadApplicationLifecycle, getNextSequenceLongValue, getNextSequenceStringValue, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getPrincipalIdForName, getPrincipalNameForId, getRoleIdForName, getSuiteLifecycles, getTransactionTemplate, loadDefaultTestData, loadPerTestData, loadSuiteTestData, loadTestData, loadXmlFile, loadXmlFile, loadXmlFileFromFileSystem, loadXmlStream, setUpAfterDataLoad
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles, setUp
 
Methods inherited from class org.kuali.rice.test.BaseModuleTestCase
getModuleName
 
Methods inherited from class org.kuali.rice.test.RiceInternalSuiteDataTestCase
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
 
Methods inherited from class org.kuali.rice.test.RiceTestCase
configureLogging, dumpMemory, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
 
Methods inherited from class org.kuali.rice.test.BaseRiceTestCase
getName, getPerTestDataLoaderLifecycle, getTestMethod, resetLogLevels, setLogLevel, setName, setTestMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserOptionsServiceTest

public UserOptionsServiceTest()
Method Detail

testUserOptionsSaveWithPrincipalIdOptionIdOptionVal

public void testUserOptionsSaveWithPrincipalIdOptionIdOptionVal()
                                                         throws Exception
Test save method when a principal id, option id, and option value are given

Throws:
Exception - if errors while validating save method.

testUserOptionsSaveWithOptionMap

public void testUserOptionsSaveWithOptionMap()
                                      throws Exception
Test save method when a principal id and a Map keyed by option ids and option values as the mapped value

Throws:
Exception - if errors while validating save method.

testFindByUserQualified

public void testFindByUserQualified()
                             throws Exception
Test to ensure findByUserQualified method is filtering results with the given principal id and likeString.

Throws:
Exception - if errors while validating findByUserQualified method

testRetrieveEmailPreferenceUserOptions

public void testRetrieveEmailPreferenceUserOptions()
                                            throws Exception
Test retrieveEmailPreferenceUserOptions method is filtering results with the given principal id and email setting

Throws:
Exception - if errors while validating retrieveEmailPreferenceUserOptions method


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.