|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
org.springframework.batch.item.validator.SpringValidatorTests
public class SpringValidatorTests
Tests for SpringValidator
.
Constructor Summary | |
---|---|
SpringValidatorTests()
|
Method Summary | |
---|---|
protected void |
setUp()
|
void |
testNullValidator()
Validator property is not set |
void |
testValidateFailure()
Typical failed validation - ValidationException is thrown |
void |
testValidateFailureWithFields()
Typical failed validation - message contains the item and names of invalid fields. |
void |
testValidateSuccessfully()
Typical successful validation - no exception is thrown. |
void |
testValidateUnsupportedType()
Validator does not know how to validate object of the given class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringValidatorTests()
Method Detail |
---|
protected void setUp() throws Exception
Exception
public void testNullValidator() throws Exception
Exception
public void testValidateUnsupportedType()
public void testValidateSuccessfully()
public void testValidateFailure()
ValidationException
is thrown
public void testValidateFailureWithFields()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |