org.kuali.rice.krad.messages
Class MessageServiceTest

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.messages.MessageServiceTest
All Implemented Interfaces:
MethodAware

@PerSuiteUnitTestData(value=@UnitTestData(order={SQL_STATEMENTS,SQL_FILES},sqlFiles=@UnitTestFile(filename="classpath:testExternalMessages.sql",delimiter=";")))
public class MessageServiceTest
extends KRADTestCase

Test cases for MessageService

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.krad.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
MessageServiceTest()
           
 
Method Summary
 void setUp()
           
 void testRetrieveMessage_DatabaseByKey()
          Test retrieval of a message from the database by key only (default namespace)
 void testRetrieveMessage_DatabaseByNamespaceComponentKey()
          Test retrieval of a message from the database by namespace, component, and key
 void testRetrieveMessage_DatabaseByNamespaceKey()
          Test retrieval of a message from the database by namespace and key
 void testRetrieveMessage_Locale()
          Test retrieval of messages with different locales
 void testRetrieveMessage_ResourceByKey()
          Test retrieval of a message from resources by key only (default namespace)
 void testRetrieveMessage_ResourceByNamespaceComponentKey()
          Test retrieval of a message from resources by namespace, component, and key
 void testRetrieveMessage_ResourceByNamespaceKey()
          Test retrieval of a message from resources by namespace and key
 
Methods inherited from class org.kuali.rice.krad.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, 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

MessageServiceTest

public MessageServiceTest()
Method Detail

setUp

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

testRetrieveMessage_ResourceByKey

public void testRetrieveMessage_ResourceByKey()
                                       throws Exception
Test retrieval of a message from resources by key only (default namespace)

Throws:
Exception

testRetrieveMessage_ResourceByNamespaceKey

public void testRetrieveMessage_ResourceByNamespaceKey()
                                                throws Exception
Test retrieval of a message from resources by namespace and key

Throws:
Exception

testRetrieveMessage_ResourceByNamespaceComponentKey

public void testRetrieveMessage_ResourceByNamespaceComponentKey()
                                                         throws Exception
Test retrieval of a message from resources by namespace, component, and key

Throws:
Exception

testRetrieveMessage_DatabaseByKey

public void testRetrieveMessage_DatabaseByKey()
                                       throws Exception
Test retrieval of a message from the database by key only (default namespace)

Throws:
Exception

testRetrieveMessage_DatabaseByNamespaceKey

public void testRetrieveMessage_DatabaseByNamespaceKey()
                                                throws Exception
Test retrieval of a message from the database by namespace and key

Throws:
Exception

testRetrieveMessage_DatabaseByNamespaceComponentKey

public void testRetrieveMessage_DatabaseByNamespaceComponentKey()
                                                         throws Exception
Test retrieval of a message from the database by namespace, component, and key

Throws:
Exception

testRetrieveMessage_Locale

public void testRetrieveMessage_Locale()
                                throws Exception
Test retrieval of messages with different locales

Throws:
Exception


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