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

java.lang.Object
  extended by org.jboss.testharness.AbstractTest
      extended by org.hibernate.jsr303.tck.tests.validation.ValidatePropertyTest
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 ValidatePropertyTest
extends org.jboss.testharness.AbstractTest

Tests for the implementation of Validator.

Author:
Hardy Ferentschik

Constructor Summary
ValidatePropertyTest()
           
 
Method Summary
 void testIllegalArgumentExceptionIsThrownForNullValue()
           
 void testPassingNullAsGroup()
           
 void testUnexpectedExceptionsInValidatePropertyGetWrappedInValidationExceptions()
           
 void testValidateProperty()
           
 void testValidatePropertyWithEmptyProperty()
           
 void testValidatePropertyWithInvalidPropertyPath()
           
 void testValidatePropertyWithNullProperty()
           
 void testValidIsNotHonoredValidateProperty()
           
 
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

ValidatePropertyTest

public ValidatePropertyTest()
Method Detail

testPassingNullAsGroup

@SpecAssertion(section="4.1.1",
               id="e")
public void testPassingNullAsGroup()

testIllegalArgumentExceptionIsThrownForNullValue

@SpecAssertion(section="4.1.1",
               id="e")
public void testIllegalArgumentExceptionIsThrownForNullValue()

testValidatePropertyWithInvalidPropertyPath

@SpecAssertions(value={@SpecAssertion(section="4.1.1",id="e"),@SpecAssertion(section="4.1.1",id="f")})
public void testValidatePropertyWithInvalidPropertyPath()

testValidatePropertyWithNullProperty

@SpecAssertion(section="4.1.1",
               id="e")
public void testValidatePropertyWithNullProperty()

testValidatePropertyWithEmptyProperty

@SpecAssertion(section="4.1.1",
               id="e")
public void testValidatePropertyWithEmptyProperty()

testValidateProperty

@SpecAssertions(value={@SpecAssertion(section="4.1.1",id="c"),@SpecAssertion(section="4.1.1",id="d"),@SpecAssertion(section="4.1.1",id="f")})
public void testValidateProperty()

testValidIsNotHonoredValidateProperty

@SpecAssertion(section="4.1.1",
               id="g")
public void testValidIsNotHonoredValidateProperty()

testUnexpectedExceptionsInValidatePropertyGetWrappedInValidationExceptions

@SpecAssertion(section="4.1.1",
               id="k")
public void testUnexpectedExceptionsInValidatePropertyGetWrappedInValidationExceptions()


Copyright © 2008-2011. All Rights Reserved.