org.hibernate.jsr303.tck.tests.constraints.customconstraint
Class CustomConstraintValidatorTest

java.lang.Object
  extended by org.jboss.testharness.AbstractTest
      extended by org.hibernate.jsr303.tck.tests.constraints.customconstraint.CustomConstraintValidatorTest
All Implemented Interfaces:
org.testng.IHookable

@Artifact(artifactType=JSR303)
@Classes(value={TestUtil.class,TestUtil.PathImpl.class,TestUtil.NodeImpl.class})
public class CustomConstraintValidatorTest
extends org.jboss.testharness.AbstractTest

Author:
Emmanuel Bernard, Hardy Ferentschik

Nested Class Summary
static class CustomConstraintValidatorTest.Freezer
           
static class CustomConstraintValidatorTest.OddShoe
           
static class CustomConstraintValidatorTest.Shoe
           
 
Constructor Summary
CustomConstraintValidatorTest()
           
 
Method Summary
 void testDefaultPropertyPath()
           
 void testIsValidIsCalledForEachValidation()
           
 void testNonInterpolatedMessageParameterIsUsed()
           
 void testOneConstraintViolationPerFailingConstraint()
           
 void testRightValidatorIsSelectedAndInitializedCalled()
           
 void testRuntimeExceptionFromInitializeIsWrapped()
           
 void testRuntimeExceptionFromIsValidIsWrapped()
           
 void testUnexpectedTypeExceptionIsRaisedForInvalidType()
           
 
Methods inherited from class org.jboss.testharness.AbstractTest
afterClass, afterMethod, afterSuite, beforeClass, beforeMethod, beforeSuite, getContextPath, getCurrentConfiguration, handleDeploymentFailure, isInContainer, isThrowablePresent, postCreate, run, setInContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomConstraintValidatorTest

public CustomConstraintValidatorTest()
Method Detail

testRightValidatorIsSelectedAndInitializedCalled

@SpecAssertions(value={@SpecAssertion(section="2.4",id="a"),@SpecAssertion(section="2.4",id="b"),@SpecAssertion(section="2.4",id="e")})
public void testRightValidatorIsSelectedAndInitializedCalled()

testIsValidIsCalledForEachValidation

@SpecAssertions(value={@SpecAssertion(section="2.4",id="a"),@SpecAssertion(section="2.4",id="b"),@SpecAssertion(section="2.4",id="f")})
public void testIsValidIsCalledForEachValidation()

testUnexpectedTypeExceptionIsRaisedForInvalidType

@SpecAssertion(section="2.4",
               id="i")
public void testUnexpectedTypeExceptionIsRaisedForInvalidType()

testRuntimeExceptionFromIsValidIsWrapped

@SpecAssertion(section="2.4",
               id="j")
public void testRuntimeExceptionFromIsValidIsWrapped()

testRuntimeExceptionFromInitializeIsWrapped

@SpecAssertion(section="2.4",
               id="j")
public void testRuntimeExceptionFromInitializeIsWrapped()

testOneConstraintViolationPerFailingConstraint

@SpecAssertion(section="2.4",
               id="l")
public void testOneConstraintViolationPerFailingConstraint()

testNonInterpolatedMessageParameterIsUsed

@SpecAssertion(section="2.4",
               id="n")
public void testNonInterpolatedMessageParameterIsUsed()

testDefaultPropertyPath

@SpecAssertion(section="2.4",
               id="o")
public void testDefaultPropertyPath()


Copyright © 2008-2011. All Rights Reserved.