org.kuali.rice.krad.datadictionary
Class ExtensionAttributeTest

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.test.KRADTestCase
                          extended by org.kuali.rice.krad.datadictionary.ExtensionAttributeTest
All Implemented Interfaces:
MethodAware

public class ExtensionAttributeTest
extends KRADTestCase

ExtensionAttributeTest tests that PersistableBusinessObject.getExtension() works as expected

When running this test, the working directory should be set to two levels down from the root of the project e.g. it/krad

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
ExtensionAttributeTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testBOMetaDataService()
           
 void testExistenceChecks()
          tests validation on the extension attribute // TODO: test is currently failing because default existence checks are not implemented in KRAD // see https://jira.kuali.org/browse/KULRICE-7666
 void testExtensionAttributeType()
           
 void testObjectUtils_getPropertyType()
           
 void testQuickFinder()
           
 
Methods inherited from class org.kuali.test.KRADTestCase
getLoadApplicationLifecycle, getSuiteLifecycles, getTestDictionaryObject, loadSuiteTestData, setUpInternal
 
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, getBaseDir, 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, resetLogLevels, setLogLevel, setName, setTestMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionAttributeTest

public ExtensionAttributeTest()
Method Detail

setUp

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

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class RiceTestCase
Throws:
Exception

testExtensionAttributeType

public void testExtensionAttributeType()
                                throws Exception
Throws:
Exception

testObjectUtils_getPropertyType

public void testObjectUtils_getPropertyType()
                                     throws Exception
Throws:
Exception

testBOMetaDataService

public void testBOMetaDataService()
                           throws Exception
Throws:
Exception

testQuickFinder

public void testQuickFinder()
                     throws Exception
Throws:
Exception

testExistenceChecks

public void testExistenceChecks()
                         throws Exception
tests validation on the extension attribute // TODO: test is currently failing because default existence checks are not implemented in KRAD // see https://jira.kuali.org/browse/KULRICE-7666

The values given for attributes that are foreign keys should represent existing objects when auto-update is set to false

Throws:
Exception


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