org.kuali.rice.krad.keyvalues
Class PersistableBusinessObjectValuesFinderTest

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

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

PersistableBusinessObjectValuesFinderTest tests the PersistableBusinessObjectValuesFinder

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
PersistableBusinessObjectValuesFinderTest()
          Default Constructor builds KeyValue Lists used for tests.
 
Method Summary
 void testGetKeyValues()
          tests to make sure the PersistableBusinessObjectValuesFinder works as expected for the TravelAccountType BO
 void testGetKeyValuesKeyInLabel()
          tests to make sure the PersistableBusinessObjectValuesFinder works as expected for the TravelAccountType BO with the key included in the label
 void testGetKeyValuesKeyInLabelLongKey()
          tests that PersistableBusinessObjectValuesFinder works as expected for the FiscalOfficer BO with the key included in the label
 void testGetKeyValuesLongKey()
          tests to make sure the PersistableBusinessObjectValuesFinder works as expected for the FiscalOfficer BO.
 
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

PersistableBusinessObjectValuesFinderTest

public PersistableBusinessObjectValuesFinderTest()
Default Constructor builds KeyValue Lists used for tests.

Method Detail

testGetKeyValues

public void testGetKeyValues()
                      throws Exception
tests to make sure the PersistableBusinessObjectValuesFinder works as expected for the TravelAccountType BO

Throws:
Exception

testGetKeyValuesKeyInLabel

public void testGetKeyValuesKeyInLabel()
                                throws Exception
tests to make sure the PersistableBusinessObjectValuesFinder works as expected for the TravelAccountType BO with the key included in the label

Throws:
Exception

testGetKeyValuesLongKey

public void testGetKeyValuesLongKey()
                             throws Exception
tests to make sure the PersistableBusinessObjectValuesFinder works as expected for the FiscalOfficer BO.

Throws:
Exception

testGetKeyValuesKeyInLabelLongKey

public void testGetKeyValuesKeyInLabelLongKey()
                                       throws Exception
tests that PersistableBusinessObjectValuesFinder works as expected for the FiscalOfficer BO with the key included in the label

Throws:
Exception


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