Package org.apache.bval.jsr
Class CircularReferencesTest
- java.lang.Object
-
- org.apache.bval.jsr.ValidationTestBase
-
- org.apache.bval.jsr.CircularReferencesTest
-
public class CircularReferencesTest extends ValidationTestBase
Checks that circular references in the bean graph are correctly detected when validating.- Author:
- Carlos Vara
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CircularReferencesTest.Boss
static class
CircularReferencesTest.Person
-
Field Summary
-
Fields inherited from class org.apache.bval.jsr.ValidationTestBase
factory, validator
-
-
Constructor Summary
Constructors Constructor Description CircularReferencesTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testAutoreferringBean()
Checks that validation correctly stops when finding a circular dependency.void
testNonCircularArrayOfSameBean()
Checks that a bean is always validated when appearing in non-circular paths inside the bean graph.-
Methods inherited from class org.apache.bval.jsr.ValidationTestBase
createValidator, setUp, setupValidatorFactory
-
-
-
-
Method Detail
-
testAutoreferringBean
public void testAutoreferringBean()
Checks that validation correctly stops when finding a circular dependency.
-
testNonCircularArrayOfSameBean
public void testNonCircularArrayOfSameBean()
Checks that a bean is always validated when appearing in non-circular paths inside the bean graph.
-
-