org.kuali.rice.krad.service.impl
Class DictionaryValidationServiceImplTest
java.lang.Object
org.kuali.rice.test.BaseRiceTestCase
org.kuali.rice.test.RiceTestCase
org.kuali.rice.test.RiceInternalSuiteDataTestCase
org.kuali.rice.test.BaseModuleTestCase
org.kuali.rice.test.BaselineTestCase
org.kuali.rice.krad.test.KRADTestCase
org.kuali.rice.krad.service.impl.DictionaryValidationServiceImplTest
- All Implemented Interfaces:
- MethodAware
public class DictionaryValidationServiceImplTest
- extends KRADTestCase
DictionaryValidationServiceImplTest tests DictionaryValidationServiceImpl
using the data dictionary
configurations in
org/kuali/rice/krad/test/datadictionary/validation
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addressEntry
protected DataObjectEntry addressEntry
DictionaryValidationServiceImplTest
public DictionaryValidationServiceImplTest()
setUp
public void setUp()
throws Exception
- Overrides:
setUp
in class KRADTestCase
- Throws:
Exception
testValidNonUSAddress
public void testValidNonUSAddress()
testValidUSAddress
public void testValidUSAddress()
testInvalidUSAddress
public void testInvalidUSAddress()
testValidNonDCAddress
public void testValidNonDCAddress()
testInvalidDCAddress
public void testInvalidDCAddress()
testNoStateNoZipUSAddress
public void testNoStateNoZipUSAddress()
testSimpleCaseConstraints
public void testSimpleCaseConstraints()
throws IOException
- Throws:
IOException
testRequiredNestedAttribute
public void testRequiredNestedAttribute()
throws IOException
- Throws:
IOException
testCollectionConstraints
public void testCollectionConstraints()
throws IOException
- Throws:
IOException
testStateValidation
public void testStateValidation()
throws IOException
- General test for state based using case constraints and valid characters constraints.
- Throws:
IOException
testStateValidationForMustOccurs
public void testStateValidationForMustOccurs()
throws IOException
- Tests for state based validation using a MustOccurs constraint.
- Throws:
IOException
testStateValidationConstraintOverrides
public void testStateValidationConstraintOverrides()
throws IOException
- Testing of stateConstraintOverrides for multiple different cases
- Throws:
IOException
testStateRangeValidationForPrerequisite
public void testStateRangeValidationForPrerequisite()
throws IOException
- Testing state based validation state ranges, "ie state2>state4" and using prerequisite constraints
- Throws:
IOException
testStateValidationSimpleConstraintWithOverrides
public void testStateValidationSimpleConstraintWithOverrides()
hasError
protected boolean hasError(DictionaryValidationResult dvr,
String attributeName,
String errorKey)
- checks whether a
DictionaryValidationResult
contains errors for a named attribute
- Parameters:
dvr
- - the dictionary validation resultattributeName
- - the attribute whose validation errors are being checkederrorKey
- - a constant that retrieves an informational message to display to the user
- Returns:
- true if an error with the error key has been found for the attribute, false otherwise
Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.