org.hibernate.beanvalidation.tck.tests.methodvalidation
Class ValidateParametersTest

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

@SpecVersion(spec="beanvalidation",
             version="1.1.0")
public class ValidateParametersTest
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
ValidateParametersTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
           
 void setupValidator()
           
 void testCrossParameterConstraintGivenSeveralTimes()
           
 void testCrossParameterConstraintValidationWithGroup()
           
 void testNoViolations()
           
 void testNullPassedAsSingleGroupCausesException()
           
 void testNullPassedForGroupsCausesException()
           
 void testNullPassedForMethodCausesException()
           
 void testNullPassedForObjectCausesException()
           
 void testNullPassedForParameterValuesCausesException()
           
 void testOneViolation()
           
 void testOneViolationForCascadedValidation()
           
 void testOneViolationFromCrossParameterConstraint()
           
 void testTwoConstraintsOfSameType()
           
 void testTwoViolations()
           
 void testTwoViolationsOnSameParameter()
           
 void testUnexpectedType()
           
 void testValidationWithGroup()
           
 void testValidationWithSeveralGroups()
           
 
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

ValidateParametersTest

public ValidateParametersTest()
Method Detail

createTestArchive

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

setupValidator

public void setupValidator()

testOneViolation

@SpecAssertions(value={@SpecAssertion(section="5.1.2",id="a"),@SpecAssertion(section="5.1.2",id="b"),@SpecAssertion(section="5.2",id="d"),@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 testOneViolation()
                      throws Exception
Throws:
Exception

testOneViolationFromCrossParameterConstraint

@SpecAssertions(value={@SpecAssertion(section="5.1.2",id="b"),@SpecAssertion(section="5.2",id="f"),@SpecAssertion(section="5.2",id="j")})
public void testOneViolationFromCrossParameterConstraint()
                                                  throws Exception
Throws:
Exception

testTwoViolations

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

testTwoViolationsOnSameParameter

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

testTwoConstraintsOfSameType

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

testCrossParameterConstraintGivenSeveralTimes

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

testNoViolations

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

testValidationWithGroup

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

testCrossParameterConstraintValidationWithGroup

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

testValidationWithSeveralGroups

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

testUnexpectedType

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

testNullPassedForObjectCausesException

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

testNullPassedForMethodCausesException

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

testNullPassedForParameterValuesCausesException

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

testNullPassedForGroupsCausesException

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

testNullPassedAsSingleGroupCausesException

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

testOneViolationForCascadedValidation

@SpecAssertions(value={@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 testOneViolationForCascadedValidation()
                                           throws Exception
Throws:
Exception


Copyright © 2008-2013. All Rights Reserved.