org.kuali.rice.krad.service
Class LookupServiceTest

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.krad.test.KRADTestCase
                          extended by org.kuali.rice.krad.service.LookupServiceTest
All Implemented Interfaces:
MethodAware
Direct Known Subclasses:
LegacyDataAdapterLookupTest

@PerTestUnitTestData(value=@UnitTestData(order={SQL_STATEMENTS,SQL_FILES},sqlStatements={@UnitTestSql(value="delete from trv_acct where acct_fo_id between 101 and 301"),@UnitTestSql(value="delete from trv_acct_fo where acct_fo_id between 101 and 301"),@UnitTestSql(value="delete from krtst_test_table_t")},sqlFiles={@UnitTestFile(filename="classpath:testAccountManagers.sql",delimiter=";"),@UnitTestFile(filename="classpath:testAccounts.sql",delimiter=";"),@UnitTestFile(filename="classpath:testDataObjects.sql",delimiter=";")}),
                     tearDown=@UnitTestData(sqlStatements={@UnitTestSql(value="delete from trv_acct where acct_fo_id between 101 and 301"),@UnitTestSql(value="delete from trv_acct_fo where acct_fo_id between 101 and 301"),@UnitTestSql(value="delete from krtst_test_table_t")}))
public class LookupServiceTest
extends KRADTestCase

LookupServiceTest tests KULRICE-984: Lookups - Relative Limit Gap

Making sure that lookup resultSetLimits set in the DD for a BO will override the system wide default.

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.krad.test.KRADTestCase
dd, kradTestHarnessSpringResourceLoader
 
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
LookupServiceTest()
           
 
Method Summary
protected
<T> Collection<T>
findCollectionBySearch(Class<T> clazz, Map<String,String> formProps)
           
protected
<T> Collection<T>
findCollectionBySearchHelper(Class<T> clazz, Map<String,String> formProps, boolean unbounded)
           
protected
<T> Collection<T>
findCollectionBySearchUnbounded(Class<T> clazz, Map<String,String> formProps)
           
 void testLookupReturnDefaultLimit()
          tests a lookup with the default limit
 void testLookupReturnDefaultUnbounded_Account()
          tests an unbounded lookup
 void testLookupReturnDefaultUnbounded_AccountManager()
          tests an unbounded lookup
 void testLookupReturnDefaultUnbounded_TestDataObject()
           
 void testLookupReturnLimits_AccountManager()
          tests lookup return limits
 void testLookupReturnLimits_TestDataObject()
           
 
Methods inherited from class org.kuali.rice.krad.test.KRADTestCase
getKRADTestHarnessContext, getLoadApplicationLifecycle, getSuiteLifecycles, getTestDictionaryObject, loadSuiteTestData, setUpInternal
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, 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, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, 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

LookupServiceTest

public LookupServiceTest()
Method Detail

findCollectionBySearchHelper

protected <T> Collection<T> findCollectionBySearchHelper(Class<T> clazz,
                                                         Map<String,String> formProps,
                                                         boolean unbounded)

findCollectionBySearch

protected <T> Collection<T> findCollectionBySearch(Class<T> clazz,
                                                   Map<String,String> formProps)

findCollectionBySearchUnbounded

protected <T> Collection<T> findCollectionBySearchUnbounded(Class<T> clazz,
                                                            Map<String,String> formProps)

testLookupReturnLimits_AccountManager

public void testLookupReturnLimits_AccountManager()
                                           throws Exception
tests lookup return limits

Throws:
Exception

testLookupReturnLimits_TestDataObject

public void testLookupReturnLimits_TestDataObject()
                                           throws Exception
Throws:
Exception

testLookupReturnDefaultLimit

public void testLookupReturnDefaultLimit()
                                  throws Exception
tests a lookup with the default limit

Throws:
Exception

testLookupReturnDefaultUnbounded_AccountManager

public void testLookupReturnDefaultUnbounded_AccountManager()
                                                     throws Exception
tests an unbounded lookup

Throws:
Exception

testLookupReturnDefaultUnbounded_Account

public void testLookupReturnDefaultUnbounded_Account()
                                              throws Exception
tests an unbounded lookup

Throws:
Exception

testLookupReturnDefaultUnbounded_TestDataObject

public void testLookupReturnDefaultUnbounded_TestDataObject()
                                                     throws Exception
Throws:
Exception


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