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

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

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

ValidateReturnValueTest

public ValidateReturnValueTest()
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="d"),@SpecAssertion(section="5.1.2",id="e"),@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

testTwoViolations

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

testTwoConstraintsOfSameType

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

testNoViolations

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

testValidationWithGroup

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

testValidationWithSeveralGroups

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

testUnexpectedType

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

testNullPassedForObjectCausesException

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

testNullPassedForMethodCausesException

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

testNullPassedForGroupsCausesException

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

testNullPassedAsSingleGroupCausesException

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