org.hibernate.beanvalidation.tck.tests.constraints.application.method
Class MethodValidationRequirementTest

java.lang.Object
  extended by org.jboss.arquillian.testng.Arquillian
      extended by org.hibernate.beanvalidation.tck.tests.constraints.application.method.MethodValidationRequirementTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

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

Author:
Gunnar Morling

Field Summary
 
Fields inherited from class org.jboss.arquillian.testng.Arquillian
ARQUILLIAN_DATA_PROVIDER
 
Constructor Summary
MethodValidationRequirementTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
           
 void setupValidator()
           
 void testCascadedConstructorParameterIsValidatedRecursively()
           
 void testCascadedConstructorReturnValueIsValidatedRecursively()
           
 void testCascadedMethodParameterIsValidatedRecursively()
           
 void testCascadedMethodReturnValueIsValidatedRecursively()
           
 void testConstructorParameterAndCrossParameterConstraintsAreEvaluatedAtTheSameTime()
           
 void testConstructorParameterConstraintsAreDeclaredByAnnotatingParameters()
           
 void testConstructorParameterIsMarkedAsCascaded()
           
 void testConstructorReturnValueIsMarkedAsCascaded()
           
 void testCrossParameterConstraintsAreDeclaredByAnnotatingConstructors()
           
 void testCrossParameterConstraintsAreDeclaredByAnnotatingMethods()
           
 void testMethodParameterAndCrossParameterConstraintsAreEvaluatedAtTheSameTime()
           
 void testMethodParameterConstraintsAreDeclaredByAnnotatingParameters()
           
 void testMethodParameterIsMarkedAsCascaded()
           
 void testMethodReturnValueIsMarkedAsCascaded()
           
 void testPassingNullToCascadedConstructorParameterCausesNoViolation()
           
 void testPassingNullToCascadedMethodParameterCausesNoViolation()
           
 void testReturningNullFromCascadedMethodCausesNoViolation()
           
 void testReturnValueConstraintsAreDeclaredByAnnotatingConstructors()
           
 void testReturnValueConstraintsAreDeclaredByAnnotatingMethods()
           
 
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

MethodValidationRequirementTest

public MethodValidationRequirementTest()
Method Detail

createTestArchive

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

setupValidator

public void setupValidator()

testMethodParameterConstraintsAreDeclaredByAnnotatingParameters

@SpecAssertion(section="4.5.2",
               id="a")
public void testMethodParameterConstraintsAreDeclaredByAnnotatingParameters()
                                                                     throws Exception
Throws:
Exception

testConstructorParameterConstraintsAreDeclaredByAnnotatingParameters

@SpecAssertion(section="4.5.2",
               id="a")
public void testConstructorParameterConstraintsAreDeclaredByAnnotatingParameters()
                                                                          throws Exception
Throws:
Exception

testCrossParameterConstraintsAreDeclaredByAnnotatingMethods

@SpecAssertion(section="4.5.2.1",
               id="a")
public void testCrossParameterConstraintsAreDeclaredByAnnotatingMethods()
                                                                 throws Exception
Throws:
Exception

testCrossParameterConstraintsAreDeclaredByAnnotatingConstructors

@SpecAssertion(section="4.5.2.1",
               id="a")
public void testCrossParameterConstraintsAreDeclaredByAnnotatingConstructors()
                                                                      throws Exception
Throws:
Exception

testMethodParameterAndCrossParameterConstraintsAreEvaluatedAtTheSameTime

@SpecAssertion(section="5.1.2",
               id="a")
public void testMethodParameterAndCrossParameterConstraintsAreEvaluatedAtTheSameTime()
                                                                              throws Exception
Throws:
Exception

testConstructorParameterAndCrossParameterConstraintsAreEvaluatedAtTheSameTime

@SpecAssertion(section="5.1.2",
               id="g")
public void testConstructorParameterAndCrossParameterConstraintsAreEvaluatedAtTheSameTime()
                                                                                   throws Exception
Throws:
Exception

testReturnValueConstraintsAreDeclaredByAnnotatingMethods

@SpecAssertion(section="4.5.3",
               id="a")
public void testReturnValueConstraintsAreDeclaredByAnnotatingMethods()
                                                              throws Exception
Throws:
Exception

testReturnValueConstraintsAreDeclaredByAnnotatingConstructors

@SpecAssertion(section="4.5.3",
               id="a")
public void testReturnValueConstraintsAreDeclaredByAnnotatingConstructors()
                                                                   throws Exception
Throws:
Exception

testMethodParameterIsMarkedAsCascaded

@SpecAssertion(section="4.5.4",
               id="a")
public void testMethodParameterIsMarkedAsCascaded()
                                           throws Exception
Throws:
Exception

testConstructorParameterIsMarkedAsCascaded

@SpecAssertion(section="4.5.4",
               id="a")
public void testConstructorParameterIsMarkedAsCascaded()
                                                throws Exception
Throws:
Exception

testMethodReturnValueIsMarkedAsCascaded

@SpecAssertion(section="4.5.4",
               id="a")
public void testMethodReturnValueIsMarkedAsCascaded()
                                             throws Exception
Throws:
Exception

testConstructorReturnValueIsMarkedAsCascaded

@SpecAssertion(section="4.5.4",
               id="a")
public void testConstructorReturnValueIsMarkedAsCascaded()
                                                  throws Exception
Throws:
Exception

testPassingNullToCascadedMethodParameterCausesNoViolation

@SpecAssertion(section="4.5.4",
               id="b")
public void testPassingNullToCascadedMethodParameterCausesNoViolation()
                                                               throws Exception
Throws:
Exception

testPassingNullToCascadedConstructorParameterCausesNoViolation

@SpecAssertion(section="4.5.4",
               id="b")
public void testPassingNullToCascadedConstructorParameterCausesNoViolation()
                                                                    throws Exception
Throws:
Exception

testReturningNullFromCascadedMethodCausesNoViolation

@SpecAssertion(section="4.5.4",
               id="b")
public void testReturningNullFromCascadedMethodCausesNoViolation()
                                                          throws Exception
Throws:
Exception

testCascadedMethodParameterIsValidatedRecursively

@SpecAssertion(section="4.5.4",
               id="c")
public void testCascadedMethodParameterIsValidatedRecursively()
                                                       throws Exception
Throws:
Exception

testCascadedConstructorParameterIsValidatedRecursively

@SpecAssertion(section="4.5.4",
               id="c")
public void testCascadedConstructorParameterIsValidatedRecursively()
                                                            throws Exception
Throws:
Exception

testCascadedMethodReturnValueIsValidatedRecursively

@SpecAssertion(section="4.5.4",
               id="c")
public void testCascadedMethodReturnValueIsValidatedRecursively()
                                                         throws Exception
Throws:
Exception

testCascadedConstructorReturnValueIsValidatedRecursively

@SpecAssertion(section="4.5.4",
               id="c")
public void testCascadedConstructorReturnValueIsValidatedRecursively()
                                                              throws Exception
Throws:
Exception


Copyright © 2008-2013. All Rights Reserved.