org.kuali.rice.krad.datadictionary
Class MessageBeanProcessorTest

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.datadictionary.MessageBeanProcessorTest
All Implemented Interfaces:
MethodAware

@PerSuiteUnitTestData(value=@UnitTestData(order={SQL_STATEMENTS,SQL_FILES},sqlFiles=@UnitTestFile(filename="classpath:testExternalMessages.sql",delimiter=";")))
@TestDictionaryConfig(namespaceCode="TEST",
                      dataDictionaryFiles="classpath:org/kuali/rice/krad/datadictionary/MessageProcessorTestBeans.xml")
public class MessageBeanProcessorTest
extends KRADTestCase

Test cases for org.kuali.rice.krad.datadictionary.MessageBeanProcessor

Note these test methods are simply verifying (not assembling and invoking) because the actual processing of external messages will be done by the creation of the data dictionary in the KRAD base test case

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
MessageBeanProcessorTest()
           
 
Method Summary
 MessageService getMessageService()
           
 void testApplicationResourcesMessages()
           
 void testExpressionMessages()
          Verifies a message keys within an expression get replaced with the text
 void testMatchBeanIdSimpleKey()
          Verifies a message setup with component equal to a bean id and message key a simple property path (non-nested) is picked up and inserted into the correct bean definition and property
 void testMatchExplicitKey()
           
 void testMatchExplicitListKey()
           
 void testMatchExplicitMapKey()
           
 void testMessageExpressionMerge()
           
 void testMessagesForListBean()
           
 void testModuleResourcesMessages()
           
 
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

MessageBeanProcessorTest

public MessageBeanProcessorTest()
Method Detail

testMatchBeanIdSimpleKey

public void testMatchBeanIdSimpleKey()
                              throws Exception
Verifies a message setup with component equal to a bean id and message key a simple property path (non-nested) is picked up and inserted into the correct bean definition and property

Throws:
Exception

testMatchExplicitKey

public void testMatchExplicitKey()
                          throws Exception
Throws:
Exception

testMatchExplicitListKey

public void testMatchExplicitListKey()
                              throws Exception
Throws:
Exception

testMatchExplicitMapKey

public void testMatchExplicitMapKey()
                             throws Exception
Throws:
Exception

testMessageExpressionMerge

public void testMessageExpressionMerge()
                                throws Exception
Throws:
Exception

testMessagesForListBean

public void testMessagesForListBean()
                             throws Exception
Throws:
Exception

testModuleResourcesMessages

public void testModuleResourcesMessages()
                                 throws Exception
Throws:
Exception

testApplicationResourcesMessages

public void testApplicationResourcesMessages()
                                      throws Exception
Throws:
Exception

testExpressionMessages

public void testExpressionMessages()
                            throws Exception
Verifies a message keys within an expression get replaced with the text

Throws:
Exception

getMessageService

public MessageService getMessageService()


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