org.kuali.rice.krad.uif
Class UifBeanFactoryPostProcessorTest

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.uif.UifBeanFactoryPostProcessorTest
All Implemented Interfaces:
MethodAware

@TestDictionaryConfig(namespaceCode="KR-NS",
                      dataDictionaryFiles="classpath:org/kuali/rice/krad/uif/UifBeanFactoryPostProcessorTestBeans.xml")
public class UifBeanFactoryPostProcessorTest
extends KRADTestCase

Test methods for the UifBeanFactoryPostProcessor class

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.test.KRADTestCase
dd
 
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
UifBeanFactoryPostProcessorTest()
           
 
Method Summary
 void testBeanDefinitionNaming()
          Tests that nested bean definitions are processed ok since the bean name is derived from the class attribute and bean names that exist in the processed beans map are skipped
 void testListExpressions()
          Tests list property types with expressions, including non-inheritance, inheritance with and without merging
 void testMergingOfMapExpressions()
          Tests merging of maps when the map entries contain expressions
 void testNestedListExpressions()
          Tests merging of maps where the child bean is nested within a list TODO: this test is currently failing due to spring support of nested map merging
 void testNestedListMerging()
          TODO: this test is currently failing due to spring support of nested merging
 void testNonMergingOfMapExpressions()
          Tests non merging of maps when the map entries contain expressions
 void testOverrideOfNestedBeanExpression()
          Verifies overriding of a property that exists in the parent bean definition as an expression on a nested bean
 void testPostProcessBeanFactoryWithPeopleFlowSucceeds()
          Tests the postProcessBeanFactory method using the people flow inquiry view
 void testPostProcessBeanFactoryWithSimpleInheritanceSucceeds()
          Tests the postProcessBeanFactory method using beans with simple inheritance
 void testPostProcessBeanFactoryWithSimpleNestingSucceeds()
          Tests the postProcessBeanFactory method using beans with inheritance and nested properties
 
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, 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, getBaseDir, 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

UifBeanFactoryPostProcessorTest

public UifBeanFactoryPostProcessorTest()
Method Detail

testOverrideOfNestedBeanExpression

public void testOverrideOfNestedBeanExpression()
                                        throws Exception
Verifies overriding of a property that exists in the parent bean definition as an expression on a nested bean

For example, suppose our parent bean has a nested bean named 'nestedBean' with property foo, that has an expression value. The child bean then sets the property 'nestedBean.foo' to a value. We need to verify the expression is removed from the nested parent bean

Throws:
Exception

testMergingOfMapExpressions

public void testMergingOfMapExpressions()
                                 throws Exception
Tests merging of maps when the map entries contain expressions

Throws:
Exception

testNonMergingOfMapExpressions

public void testNonMergingOfMapExpressions()
                                    throws Exception
Tests non merging of maps when the map entries contain expressions

Throws:
Exception

testNestedListExpressions

public void testNestedListExpressions()
                               throws Exception
Tests merging of maps where the child bean is nested within a list TODO: this test is currently failing due to spring support of nested map merging

Throws:
Exception

testListExpressions

public void testListExpressions()
                         throws Exception
Tests list property types with expressions, including non-inheritance, inheritance with and without merging

Throws:
Exception

testNestedListMerging

public void testNestedListMerging()
                           throws Exception
TODO: this test is currently failing due to spring support of nested merging

Throws:
Exception

testPostProcessBeanFactoryWithSimpleInheritanceSucceeds

public void testPostProcessBeanFactoryWithSimpleInheritanceSucceeds()
                                                             throws Exception
Tests the postProcessBeanFactory method using beans with simple inheritance

Throws:
Exception

testPostProcessBeanFactoryWithSimpleNestingSucceeds

public void testPostProcessBeanFactoryWithSimpleNestingSucceeds()
                                                         throws Exception
Tests the postProcessBeanFactory method using beans with inheritance and nested properties

Throws:
Exception

testPostProcessBeanFactoryWithPeopleFlowSucceeds

public void testPostProcessBeanFactoryWithPeopleFlowSucceeds()
                                                      throws Exception
Tests the postProcessBeanFactory method using the people flow inquiry view

Throws:
Exception

testBeanDefinitionNaming

public void testBeanDefinitionNaming()
Tests that nested bean definitions are processed ok since the bean name is derived from the class attribute and bean names that exist in the processed beans map are skipped



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