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

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

@SpecVersion(spec="beanvalidation",
             version="1.1.0")
public class ValidateConstructorParametersTest
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
ValidateConstructorParametersTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
           
 void setupValidator()
           
 void testCrossParameterConstraintGivenSeveralTimes()
           
 void testCrossParameterConstraintValidationWithGroup()
           
 void testNoViolations()
           
 void testNullPassedAsSingleGroupCausesException()
           
 void testNullPassedForConstructorCausesException()
           
 void testNullPassedForGroupsCausesException()
           
 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

ValidateConstructorParametersTest

public ValidateConstructorParametersTest()
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="g"),@SpecAssertion(section="5.1.2",id="h"),@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="h"),@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="h")
public void testTwoViolations()
                       throws Exception
Throws:
Exception

testTwoViolationsOnSameParameter

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

testTwoConstraintsOfSameType

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

testCrossParameterConstraintGivenSeveralTimes

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

testNoViolations

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

testValidationWithGroup

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

testCrossParameterConstraintValidationWithGroup

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

testValidationWithSeveralGroups

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

testUnexpectedType

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

testNullPassedForConstructorCausesException

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

testNullPassedForParameterValuesCausesException

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

testNullPassedForGroupsCausesException

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

testNullPassedAsSingleGroupCausesException

@SpecAssertion(section="5.1.2",
               id="i")
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.