org.kuali.rice.krad.test
Class KRADTestCase

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
All Implemented Interfaces:
MethodAware
Direct Known Subclasses:
AttachmentTest, BaseBOClassAndBaseDocumentClassTest, BaseMaintenanceDocumentTest, BusinessObjectRefreshTest, DataDictionaryLazyLoadingTest, DataDictionaryMetadataDefaultingTest, DataDictionarySearchableAttributeTest, DataObjectWrapperIntegrationTest, DateTimeServiceTest, DictionaryValidationServiceImplTest, DictionaryValidationServiceTest, DisableVersioningTest, DocumentAuthorizerBaseTest, DocumentServiceTest, EmailAddressValidationPatternTest, ExtensionAttributeTest, ExtensionForAnnotationTest, FilterGeneratorCoersionTest, FloatingPointValidationPatternTest, InactivateableFromToServiceTest, InquiryTest, JavaClassValidationPatternTest, JpaPersistenceProviderTest, KNSTestCase, KradEclipseLinkCustomizerTest, KRADTestCase.BootstrapTest, KualiRuleServiceTest, KualiXMLAttributeImplTest, LegacyDataAdapterTest, LocationDataJPATest, LookupServiceTest, MaintenanceDocumentDictionaryServiceTest, MaskFormatterSubStringTest, MaxValueIncrementerFactoryBeanIntegrationTest, MaxValueIncrementerFactoryIntegrationTest, MessageBeanProcessorTest, MessageServiceTest, MonthValidationPatternTest, NamespaceWildcardAllowedAndOrStringExactMatchPermissionTypeServiceImplTest, NoteServiceTest, ObjectUtilsTest, ParameterServiceTest, PersistableBusinessObjectValuesFinderTest, PessimisticLockServiceTest, PopulateGroupPermissionTypeServiceImplTest, ReferenceLinkerIntegrationTest, ReportQueryByCriteriaTest, RichMessageTest, RollbackExceptionErrorReportingTest, SearchAttributeIndexRequestTest, SequenceAccessorServiceTest, TravelAuthorizationDocumentTest, TravelCompanyTest, TravelDestinationTest, TravelExpenseItemTest, TravelMileageRateTest, TravelPerDiemExpenseTest, UifBeanFactoryPostProcessorTest, UifServletRequestDataBinderIntegrationTest, ValidationMessageRetrievalTest, ViewThemeTest, WebUtilsTest, WorkflowInfoServiceTest, YearValidationPatternTest, ZipcodeValidationPatternTest

public abstract class KRADTestCase
extends BaselineTestCase

Default test base for a full KRAD enabled integration test

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
static class KRADTestCase.BootstrapTest
           
static interface KRADTestCase.Legacy
          Annotation which indicates that a Legacy Context should be used for this individual test method or for all tests in an annotated class.
 
Nested classes/interfaces inherited from class org.kuali.rice.test.BaselineTestCase
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
 
Field Summary
protected  DataDictionary dd
           
protected static SpringResourceLoader 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
KRADTestCase()
           
KRADTestCase(String moduleName)
          propagate constructor
 
Method Summary
protected  org.springframework.context.ConfigurableApplicationContext getKRADTestHarnessContext()
           
protected  Lifecycle getLoadApplicationLifecycle()
           
protected  List<Lifecycle> getSuiteLifecycles()
           
protected  Object getTestDictionaryObject(String id)
          Returns an instance of the bean with the given id that has been configured in the test dictionary
protected  void loadSuiteTestData()
           
 void setUp()
           
protected  void setUpInternal()
           
protected  void setUpLegacyContext()
           
 void tearDown()
           
protected  void 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
 

Field Detail

dd

protected DataDictionary dd

kradTestHarnessSpringResourceLoader

protected static SpringResourceLoader kradTestHarnessSpringResourceLoader
Constructor Detail

KRADTestCase

public KRADTestCase()

KRADTestCase

public KRADTestCase(String moduleName)
propagate constructor

Parameters:
moduleName - - the name of the module
Method Detail

getKRADTestHarnessContext

protected org.springframework.context.ConfigurableApplicationContext getKRADTestHarnessContext()

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

setUpLegacyContext

protected void setUpLegacyContext()

tearDownLegacyContext

protected void tearDownLegacyContext()

setUpInternal

protected void setUpInternal()
                      throws Exception
Overrides:
setUpInternal in class RiceTestCase
Throws:
Exception

getTestDictionaryObject

protected Object getTestDictionaryObject(String id)
Returns an instance of the bean with the given id that has been configured in the test dictionary

Parameters:
id - - id of the bean definition
Returns:
Object instance of the given bean class, or null if not found or dictionary is not loaded

getSuiteLifecycles

protected List<Lifecycle> getSuiteLifecycles()
Overrides:
getSuiteLifecycles in class RiceTestCase

loadSuiteTestData

protected void loadSuiteTestData()
                          throws Exception
Overrides:
loadSuiteTestData in class RiceInternalSuiteDataTestCase
Throws:
Exception

getLoadApplicationLifecycle

protected Lifecycle getLoadApplicationLifecycle()
Overrides:
getLoadApplicationLifecycle in class RiceTestCase


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