org.hibernate.jsr303.tck.tests.constraints.groups
Class GroupTest

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

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

Tests for the group and group sequence feature.

Author:
Hardy Ferentschik

Constructor Summary
GroupTest()
           
 
Method Summary
 void testConstraintCanBelongToMoreThanOneGroup()
           
 void testConstraintWithNoExplicitlySpecifiedGroupBelongsToDefault()
           
 void testCyclicGroupSequence()
           
 void testGroups()
           
 void testGroupSequence()
           
 void testGroupSequenceFollowedByGroup()
           
 void testImplicitGrouping()
           
 void testValidateAgainstDifferentGroups()
           
 void testValidationFailureInMultipleGroups()
           
 
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

GroupTest

public GroupTest()
Method Detail

testConstraintWithNoExplicitlySpecifiedGroupBelongsToDefault

@SpecAssertion(section="3.4",
               id="a")
public void testConstraintWithNoExplicitlySpecifiedGroupBelongsToDefault()

testValidateAgainstDifferentGroups

@SpecAssertions(value={@SpecAssertion(section="3.4",id="b"),@SpecAssertion(section="3.4",id="d")})
public void testValidateAgainstDifferentGroups()

testConstraintCanBelongToMoreThanOneGroup

@SpecAssertion(section="3.4",
               id="c")
public void testConstraintCanBelongToMoreThanOneGroup()

testGroups

@SpecAssertion(section="3.4",
               id="d")
public void testGroups()

testGroupSequence

@SpecAssertions(value={@SpecAssertion(section="3.4.2",id="b"),@SpecAssertion(section="3.4.2",id="d")})
public void testGroupSequence()

testValidationFailureInMultipleGroups

@SpecAssertions(value={@SpecAssertion(section="3.4",id="c"),@SpecAssertion(section="3.5",id="b")})
public void testValidationFailureInMultipleGroups()

testGroupSequenceFollowedByGroup

@SpecAssertion(section="3.4",
               id="d")
public void testGroupSequenceFollowedByGroup()

testImplicitGrouping

@SpecAssertion(section="3.4.4",
               id="a")
public void testImplicitGrouping()

testCyclicGroupSequence

@SpecAssertions(value={@SpecAssertion(section="3.4.2",id="e"),@SpecAssertion(section="3.4.2",id="f"),@SpecAssertion(section="3.4.2",id="i"),@SpecAssertion(section="8.4",id="a")})
public void testCyclicGroupSequence()


Copyright © 2008-2011. All Rights Reserved.