Package org.apache.bval.jsr.groups
Class GroupSequenceIsolationTest
- java.lang.Object
-
- org.apache.bval.jsr.ValidationTestBase
-
- org.apache.bval.jsr.groups.GroupSequenceIsolationTest
-
public class GroupSequenceIsolationTest extends ValidationTestBase
Additional tests to check the correct processing ofGroupSequences by the validator.- Author:
- Carlos Vara
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupSequenceIsolationTest.Astatic classGroupSequenceIsolationTest.Bstatic interfaceGroupSequenceIsolationTest.GroupA1static interfaceGroupSequenceIsolationTest.GroupB1static classGroupSequenceIsolationTest.HolderWithGSstatic classGroupSequenceIsolationTest.HolderWithNoGS
-
Field Summary
-
Fields inherited from class org.apache.bval.jsr.ValidationTestBase
factory, validator
-
-
Constructor Summary
Constructors Constructor Description GroupSequenceIsolationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestGroupSequenceOfBeanClass()When validating theDefaultgroup in a bean whose class defines a group sequence, that group sequence is used for all the constraints.voidtestGroupSequencesInHierarchyClasses()When validating theDefaultgroup in a bean whose class doesn't define aGroupSequence, all the classes in the hierarchy must be checked for group sequence definitions and they must be evaluated in order for the constraints defined on those classes.-
Methods inherited from class org.apache.bval.jsr.ValidationTestBase
createValidator, setUp, setupValidatorFactory
-
-
-
-
Method Detail
-
testGroupSequencesInHierarchyClasses
public void testGroupSequencesInHierarchyClasses()
When validating theDefaultgroup in a bean whose class doesn't define aGroupSequence, all the classes in the hierarchy must be checked for group sequence definitions and they must be evaluated in order for the constraints defined on those classes.
-
testGroupSequenceOfBeanClass
public void testGroupSequenceOfBeanClass()
When validating theDefaultgroup in a bean whose class defines a group sequence, that group sequence is used for all the constraints.
-
-