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 ofGroupSequence
s by the validator.- Author:
- Carlos Vara
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GroupSequenceIsolationTest.A
static class
GroupSequenceIsolationTest.B
static interface
GroupSequenceIsolationTest.GroupA1
static interface
GroupSequenceIsolationTest.GroupB1
static class
GroupSequenceIsolationTest.HolderWithGS
static class
GroupSequenceIsolationTest.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 void
testGroupSequenceOfBeanClass()
When validating theDefault
group in a bean whose class defines a group sequence, that group sequence is used for all the constraints.void
testGroupSequencesInHierarchyClasses()
When validating theDefault
group 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 theDefault
group 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 theDefault
group in a bean whose class defines a group sequence, that group sequence is used for all the constraints.
-
-