org.springframework.binding.validation.support
Class HibernateValidatorTests

Show UML class diagram
java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.binding.validation.support.HibernateValidatorTests
All Implemented Interfaces:
junit.framework.Test

public class HibernateValidatorTests
extends junit.framework.TestCase

Testcase for HibernateRulesValidator.

Author:
ldo

Constructor Summary
HibernateValidatorTests()
           
 
Method Summary
protected  void setUp()
          Initialize test environment
 void testInvalidAssertTrue()
          AssertTrue tests are not bound to a property, so they should not be included when not using explicit rules.
 void testInvalidInt()
          Test object with invalid Integer value (value out of range)
 void testInvalidIntAndString()
           
 void testInvalidString()
          Test object with invalid String value (empty string on a NotEmpty property)
 void testRulesAndHibernateValidation()
          AssertTrue tests are not bound to a property, but can be coped with by using rules
 void testRulesTriggeredNullFormObject()
           
 void testValid()
          Test valid object
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HibernateValidatorTests

public HibernateValidatorTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Initialize test environment

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

testValid

public void testValid()
Test valid object


testInvalidString

public void testInvalidString()
Test object with invalid String value (empty string on a NotEmpty property)


testInvalidInt

public void testInvalidInt()
Test object with invalid Integer value (value out of range)


testInvalidIntAndString

public void testInvalidIntAndString()

testInvalidAssertTrue

public void testInvalidAssertTrue()
AssertTrue tests are not bound to a property, so they should not be included when not using explicit rules.


testRulesTriggeredNullFormObject

public void testRulesTriggeredNullFormObject()

testRulesAndHibernateValidation

public void testRulesAndHibernateValidation()
AssertTrue tests are not bound to a property, but can be coped with by using rules



Copyright © 2004-2009 The Spring Framework. All Rights Reserved.