org.hibernate.jsr303.tck.tests.validation
Class ValidateValueTest

java.lang.Object
  extended by org.jboss.testharness.AbstractTest
      extended by org.hibernate.jsr303.tck.tests.validation.ValidateValueTest
All Implemented Interfaces:
org.testng.IHookable

@Artifact(artifactType=JSR303)
@Classes(value={TestUtil.class,TestUtil.PathImpl.class,TestUtil.NodeImpl.class,TCKValidationProvider.class,TCKValidationProvider.DummyValidatorFactory.class,TCKValidatorConfiguration.class})
public class ValidateValueTest
extends org.jboss.testharness.AbstractTest

Tests for the implementation of Validator.

Author:
Hardy Ferentschik

Constructor Summary
ValidateValueTest()
           
 
Method Summary
 void testExistingPropertyWoConstraintsNorCascaded()
           
 void testValidateValue()
           
 void testValidateValueFailure()
           
 void testValidateValuePassingNullAsGroup()
           
 void testValidateValueSuccess()
           
 void testValidateValueWithEmptyPropertyPath()
           
 void testValidateValueWithInvalidPropertyPath()
           
 void testValidateValueWithNullObject()
           
 void testValidateValueWithNullPropertyName()
           
 void testValidIsNotHonoredValidateValue()
           
 
Methods inherited from class org.jboss.testharness.AbstractTest
afterClass, afterMethod, afterSuite, beforeClass, beforeMethod, beforeSuite, getContextPath, getCurrentConfiguration, handleDeploymentFailure, isInContainer, isThrowablePresent, postCreate, run, setInContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidateValueTest

public ValidateValueTest()
Method Detail

testValidateValueSuccess

@SpecAssertion(section="4.1.1",
               id="h")
public void testValidateValueSuccess()

testValidateValueFailure

@SpecAssertion(section="4.1.1",
               id="h")
public void testValidateValueFailure()

testValidateValue

@SpecAssertion(section="4.1.1",
               id="h")
public void testValidateValue()

testValidateValueWithInvalidPropertyPath

@SpecAssertion(section="4.1.1",
               id="i")
public void testValidateValueWithInvalidPropertyPath()

testExistingPropertyWoConstraintsNorCascaded

@SpecAssertion(section="4.1.1",
               id="i")
public void testExistingPropertyWoConstraintsNorCascaded()

testValidateValuePassingNullAsGroup

@SpecAssertion(section="4.1.1",
               id="i")
public void testValidateValuePassingNullAsGroup()

testValidateValueWithEmptyPropertyPath

@SpecAssertion(section="4.1.1",
               id="i")
public void testValidateValueWithEmptyPropertyPath()

testValidateValueWithNullObject

@SpecAssertion(section="4.1.1",
               id="i")
public void testValidateValueWithNullObject()

testValidateValueWithNullPropertyName

@SpecAssertion(section="4.1.1",
               id="i")
public void testValidateValueWithNullPropertyName()

testValidIsNotHonoredValidateValue

@SpecAssertion(section="4.1.1",
               id="j")
public void testValidIsNotHonoredValidateValue()


Copyright © 2008-2011. All Rights Reserved.