org.kuali.rice.krad.service.impl
Class DictionaryValidationServiceImplTest
java.lang.Object
org.kuali.rice.krad.service.impl.DictionaryValidationServiceImplTest
public class DictionaryValidationServiceImplTest
- extends Object
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 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
- 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
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-2012 The Kuali Foundation. All Rights Reserved.