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

java.lang.Object
  extended by org.jboss.arquillian.testng.Arquillian
      extended by org.hibernate.beanvalidation.tck.tests.validation.ValidatePropertyTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

@SpecVersion(spec="beanvalidation",
             version="1.1.0")
public class ValidatePropertyTest
extends org.jboss.arquillian.testng.Arquillian

Tests for the implementation of Validator.

Author:
Hardy Ferentschik

Field Summary
 
Fields inherited from class org.jboss.arquillian.testng.Arquillian
ARQUILLIAN_DATA_PROVIDER
 
Constructor Summary
ValidatePropertyTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
           
 void setupValidator()
           
 void testIllegalArgumentExceptionIsThrownForNullValue()
           
 void testPassingNullAsGroup()
           
 void testUnexpectedExceptionsInValidatePropertyGetWrappedInValidationExceptions()
           
 void testValidateProperty()
           
 void testValidatePropertyWithEmptyProperty()
           
 void testValidatePropertyWithInvalidPropertyPath()
           
 void testValidatePropertyWithNullProperty()
           
 void testValidIsNotHonoredValidateProperty()
           
 
Methods inherited from class org.jboss.arquillian.testng.Arquillian
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run
 
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

createTestArchive

@Deployment
public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()

setupValidator

public void setupValidator()

testPassingNullAsGroup

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

testIllegalArgumentExceptionIsThrownForNullValue

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

testValidatePropertyWithInvalidPropertyPath

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

testValidatePropertyWithNullProperty

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

testValidatePropertyWithEmptyProperty

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

testValidateProperty

@SpecAssertions(value={@SpecAssertion(section="5.1.1",id="c"),@SpecAssertion(section="5.1.1",id="d"),@SpecAssertion(section="5.1.1",id="f"),@SpecAssertion(section="5.2",id="e"),@SpecAssertion(section="5.2",id="f"),@SpecAssertion(section="5.2",id="g"),@SpecAssertion(section="5.2",id="h"),@SpecAssertion(section="5.2",id="i")})
public void testValidateProperty()

testValidIsNotHonoredValidateProperty

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

testUnexpectedExceptionsInValidatePropertyGetWrappedInValidationExceptions

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


Copyright © 2008-2013. All Rights Reserved.