public class DictionaryValidationServiceImplTest extends KRADTestCase
DictionaryValidationServiceImpl
using the data dictionary
configurations in
org/kuali/rice/krad/test/datadictionary/validationBaselineTestCase.BaselineMode, BaselineTestCase.Mode
Modifier and Type | Field and Description |
---|---|
protected DataObjectEntry |
addressEntry |
dd
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() |
getLoadApplicationLifecycle, getSuiteLifecycles, getTestDictionaryObject, loadSuiteTestData, setUpInternal
getClearDbPerTestLifecycles, getMode, getPerTestLifecycles, getPerTestTablesNotToClear, getPerTestTablesToClear, getRollbackClearDbPerTestLifecycles, getRollbackTestLifecycles
getModuleName
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKRADDefaultSuiteTestData
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod
protected DataObjectEntry addressEntry
public DictionaryValidationServiceImplTest()
public void setUp() throws Exception
setUp
in class BaselineTestCase
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-2015 The Kuali Foundation. All Rights Reserved.