org.hibernate.jsr303.tck.tests.metadata
Class ConstraintDescriptorTest

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

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

Author:
Hardy Ferentschik

Constructor Summary
ConstraintDescriptorTest()
           
 
Method Summary
 void testAnnotationAndMapParametersReflectParameterOverriding()
           
 void testComposingConstraints()
           
 void testComposingConstraintsPayload()
           
 void testDefaultGroupIsReturnedIfNoGroupSpecifiedInDeclaration()
           
 void testEmptyComposingConstraints()
           
 void testGetAttributesFromConstraintDescriptor()
           
 void testGetGroups()
           
 void testGetGroupsOnInterface()
           
 void testGetGroupsWithImplicitGroup()
           
 void testPayload()
           
 void testReportAsSingleViolation()
           
 
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

ConstraintDescriptorTest

public ConstraintDescriptorTest()
Method Detail

testReportAsSingleViolation

@SpecAssertion(section="5.5",
               id="k")
public void testReportAsSingleViolation()

testEmptyComposingConstraints

@SpecAssertion(section="5.5",
               id="l")
public void testEmptyComposingConstraints()

testAnnotationAndMapParametersReflectParameterOverriding

@SpecAssertions(value={@SpecAssertion(section="5.5",id="a"),@SpecAssertion(section="5.5",id="c")})
public void testAnnotationAndMapParametersReflectParameterOverriding()

testGetAttributesFromConstraintDescriptor

@SpecAssertion(section="5.5",
               id="b")
public void testGetAttributesFromConstraintDescriptor()

testGetGroups

@SpecAssertion(section="5.5",
               id="d")
public void testGetGroups()

testGetGroupsOnInterface

@SpecAssertion(section="5.5",
               id="d")
public void testGetGroupsOnInterface()

testGetGroupsWithImplicitGroup

@SpecAssertion(section="5.5",
               id="d")
public void testGetGroupsWithImplicitGroup()

testDefaultGroupIsReturnedIfNoGroupSpecifiedInDeclaration

@SpecAssertion(section="5.5",
               id="e")
public void testDefaultGroupIsReturnedIfNoGroupSpecifiedInDeclaration()

testComposingConstraints

@SpecAssertions(value={@SpecAssertion(section="5.5",id="f"),@SpecAssertion(section="5.5",id="l")})
public void testComposingConstraints()

testPayload

@SpecAssertion(section="5.5",
               id="g")
public void testPayload()

testComposingConstraintsPayload

@SpecAssertions(value={@SpecAssertion(section="5.5",id="h"),@SpecAssertion(section="5.5",id="i")})
public void testComposingConstraintsPayload()


Copyright © 2008-2011. All Rights Reserved.