public class DictionaryValidationServiceImplTest extends KRADTestCase
DictionaryValidationServiceImpl
using the data dictionary
configurations in
org/kuali/rice/krad/test/datadictionary/validationKRADTestCase.BootstrapTest, KRADTestCase.Legacy
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
Modifier and Type | Field and Description |
---|---|
protected DataObjectEntry |
addressEntry |
dd, kradTestHarnessSpringResourceLoader
dirty
LOG, moduleName
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
log, method
Constructor and Description |
---|
DictionaryValidationServiceImplTest() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
hasError(DictionaryValidationResult dvr,
String attributeName,
String errorKey)
checks whether a
DictionaryValidationResult contains 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, tearDownLegacyContext
getClearDbPerTestLifecycles, getMode, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles
getModuleName
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
configureLogging, dumpMemory, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles
getName, getPerTestDataLoaderLifecycle, getTestMethod, resetLogLevels, setLogLevel, setName, setTestMethod
protected DataObjectEntry addressEntry
public DictionaryValidationServiceImplTest()
public void setUp() throws Exception
setUp
in class KRADTestCase
Exception
public void testValidNonUSAddress()
public void testValidUSAddress()
public void testInvalidUSAddress()
public void testValidNonDCAddress()
public void testInvalidDCAddress()
public void testNoStateNoZipUSAddress()
public void testSimpleCaseConstraints() throws IOException
IOException
public void testRequiredNestedAttribute() throws IOException
IOException
public void testCollectionConstraints() throws IOException
IOException
public void testStateValidation() throws IOException
IOException
public void testStateValidationForMustOccurs() throws IOException
IOException
public void testStateValidationConstraintOverrides() throws IOException
IOException
public void testStateRangeValidationForPrerequisite() throws IOException
IOException
public 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.