public class DictionaryValidationServiceImplTest extends KRADTestCase
DictionaryValidationServiceImpl using the data dictionary
 configurations in
 org/kuali/rice/krad/test/datadictionary/validationKRADTestCase.BootstrapTest, KRADTestCase.LegacyBaselineTestCase.BaselineMode, BaselineTestCase.Mode| Modifier and Type | Field and Description | 
|---|---|
| protected DataObjectEntry | addressEntry | 
dd, kradTestHarnessSpringResourceLoaderdirtyLOG, moduleNameDEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycleslog, method| Constructor and Description | 
|---|
| DictionaryValidationServiceImplTest() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | hasError(DictionaryValidationResult dvr,
                String attributeName,
                String errorKey)checks whether a  DictionaryValidationResultcontains errors for a named attribute | 
| void | setUp() | 
| void | testCollectionConstraints() | 
| void | testInvalidDCAddress() | 
| void | testInvalidUSAddress() | 
| void | testNoStateNoZipUSAddress() | 
| void | testRequiredNestedAttribute() | 
| void | testSimpleCaseConstraints() | 
| void | testStateRangeValidationForPrerequisite()Testing state based validation state ranges, "ie state2>state4" and using prerequisite constraints | 
| void | testStateValidation()General test for state based using case constraints and valid characters constraints. | 
| void | testStateValidationConstraintOverrides()Testing of stateConstraintOverrides for multiple different cases | 
| void | testStateValidationForMustOccurs()Tests for state based validation using a MustOccurs constraint. | 
| void | testStateValidationSimpleConstraintWithOverrides() | 
| void | testValidNonDCAddress() | 
| void | testValidNonUSAddress() | 
| void | testValidUSAddress() | 
getKRADTestHarnessContext, getLoadApplicationLifecycle, getSuiteLifecycles, getTestDictionaryObject, loadSuiteTestData, setUpInternal, setUpLegacyContext, tearDown, tearDownLegacyContextgetClearDbPerTestLifecycles, getMode, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecyclesgetModuleNamegetKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestDataconfigureLogging, dumpMemory, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecyclesgetName, getPerTestDataLoaderLifecycle, getTestMethod, resetLogLevels, setLogLevel, setName, setTestMethodprotected DataObjectEntry addressEntry
public DictionaryValidationServiceImplTest()
public void setUp() throws Exception
setUp in class KRADTestCaseExceptionpublic void testValidNonUSAddress()
public void testValidUSAddress()
public void testInvalidUSAddress()
public void testValidNonDCAddress()
public void testInvalidDCAddress()
public void testNoStateNoZipUSAddress()
public void testSimpleCaseConstraints() throws IOException
IOExceptionpublic void testRequiredNestedAttribute() throws IOException
IOExceptionpublic void testCollectionConstraints() throws IOException
IOExceptionpublic void testStateValidation() throws IOException
IOExceptionpublic void testStateValidationForMustOccurs() throws IOException
IOExceptionpublic void testStateValidationConstraintOverrides() throws IOException
IOExceptionpublic void testStateRangeValidationForPrerequisite() throws IOException
IOExceptionpublic void testStateValidationSimpleConstraintWithOverrides()
protected boolean hasError(DictionaryValidationResult dvr, String attributeName, String errorKey)
DictionaryValidationResult contains errors for a named attributedvr - - the dictionary validation resultattributeName - - the attribute whose validation errors are being checkederrorKey - - a constant that retrieves an informational message to display to the userCopyright © 2005–2014 The Kuali Foundation. All rights reserved.