org.hibernate.jsr303.tck.tests.constraints.constraintcomposition
Class ConstraintCompositionTest
java.lang.Object
org.jboss.testharness.AbstractTest
org.hibernate.jsr303.tck.tests.constraints.constraintcomposition.ConstraintCompositionTest
- All Implemented Interfaces:
- org.testng.IHookable
@Artifact(artifactType=JSR303)
@Classes(value={TestUtil.class,TestUtil.PathImpl.class,TestUtil.NodeImpl.class})
public class ConstraintCompositionTest
- extends org.jboss.testharness.AbstractTest
Tests for composing constraints.
- Author:
- Hardy Ferentschik
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 |
ConstraintCompositionTest
public ConstraintCompositionTest()
testComposedConstraints
@SpecAssertions(value={@SpecAssertion(section="2.3",id="a"),@SpecAssertion(section="2.3",id="k")})
public void testComposedConstraints()
testComposedConstraintsAreRecursive
@SpecAssertions(value={@SpecAssertion(section="2.3",id="a"),@SpecAssertion(section="2.3",id="k")})
public void testComposedConstraintsAreRecursive()
testValidationOfMainAnnotationIsAlsoApplied
@SpecAssertions(value={@SpecAssertion(section="2.3",id="b"),@SpecAssertion(section="2.4",id="m")})
public void testValidationOfMainAnnotationIsAlsoApplied()
testEachFailingConstraintCreatesConstraintViolation
@SpecAssertions(value={@SpecAssertion(section="2.3",id="c"),@SpecAssertion(section="2.3",id="i"),@SpecAssertion(section="2.3",id="l"),@SpecAssertion(section="2.3",id="m"),@SpecAssertion(section="2.3",id="n")})
public void testEachFailingConstraintCreatesConstraintViolation()
testGroupsDefinedOnMainAnnotationAreInherited
@SpecAssertions(value={@SpecAssertion(section="2.3",id="d"),@SpecAssertion(section="2.3",id="e")})
public void testGroupsDefinedOnMainAnnotationAreInherited()
testOnlySingleConstraintViolation
@SpecAssertion(section="2.3",
id="g")
public void testOnlySingleConstraintViolation()
testAttributesDefinedOnComposingConstraints
@SpecAssertion(section="2.3",
id="h")
public void testAttributesDefinedOnComposingConstraints()
testOverriddenAttributesMustMatchInType
@SpecAssertions(value={@SpecAssertion(section="2.3",id="j"),@SpecAssertion(section="2.3",id="o")})
public void testOverriddenAttributesMustMatchInType()
testAllComposingConstraintsMustBeApplicableToAnnotatedType
@SpecAssertion(section="2.3",
id="f")
public void testAllComposingConstraintsMustBeApplicableToAnnotatedType()
testPayloadPropagationInComposedConstraints
@SpecAssertion(section="2.3",
id="p")
public void testPayloadPropagationInComposedConstraints()
Copyright © 2008-2011. All Rights Reserved.