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 = \'1\'"),@UnitTestSql(value="delete from trv_acct_type"),@UnitTestSql(value="delete from krtst_test_table_t")},sqlFiles={@UnitTestFile(filename="classpath:testAccountType.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 = \'1\'"),@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.krad.test.KRADTestCase
KRADTestCase.BootstrapTest, KRADTestCase.Legacy
 
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_TestDataObject()
          tests an unbounded lookup
 void testLookupReturnLimits_Account()
          tests lookup return limits
 void testLookupReturnLimits_TestDataObject()
          tests lookup return limits
 
Methods inherited from class org.kuali.rice.krad.test.KRADTestCase
getKRADTestHarnessContext, getLoadApplicationLifecycle, getSuiteLifecycles, getTestDictionaryObject, loadSuiteTestData, setUp, setUpInternal, setUpLegacyContext, tearDown, tearDownLegacyContext
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, getPerTestLifecycles, 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
 
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
 
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

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_Account

public void testLookupReturnLimits_Account()
                                    throws Exception
tests lookup return limits

Throws:
Exception

testLookupReturnLimits_TestDataObject

public void testLookupReturnLimits_TestDataObject()
                                           throws Exception
tests lookup return limits

Throws:
Exception

testLookupReturnDefaultLimit

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

Throws:
Exception

testLookupReturnDefaultUnbounded_Account

public void testLookupReturnDefaultUnbounded_Account()
                                              throws Exception
tests an unbounded lookup

Throws:
Exception

testLookupReturnDefaultUnbounded_TestDataObject

public void testLookupReturnDefaultUnbounded_TestDataObject()
                                                     throws Exception
tests an unbounded lookup

Throws:
Exception


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