Package org.apache.bval.jsr
Class BeanDescriptorTest
- java.lang.Object
-
- org.apache.bval.jsr.ValidationTestBase
-
- org.apache.bval.jsr.BeanDescriptorTest
-
public class BeanDescriptorTest extends ValidationTestBase
Tests the implementation ofBeanDescriptor
and its dependent interfaces.- Author:
- Carlos Vara
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BeanDescriptorTest.Account
static class
BeanDescriptorTest.Form
static interface
BeanDescriptorTest.Group1
static interface
BeanDescriptorTest.Password
static interface
BeanDescriptorTest.Person
static class
BeanDescriptorTest.Woman
-
Field Summary
-
Fields inherited from class org.apache.bval.jsr.ValidationTestBase
factory, validator
-
-
Constructor Summary
Constructors Constructor Description BeanDescriptorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testConstraintFinderLookingAt()
Check the correct behavior ofElementDescriptor.ConstraintFinder.lookingAt(jakarta.validation.metadata.Scope)
.void
testCorrectValueForInheritedGroupsAttribute()
Check that the groups() attribute value has the correct value when inheriting groups.void
testDescriptorCaching()
void
testElementDescriptorGetElementClass()
Check that the implementations ofElementDescriptor.getElementClass()
work as defined in the spec.void
testImplicitGroupIsPresent()
Check that the groups() attribute value contains the correct interface as implicit group when the constraint is defined in that interface instead of the queried class.void
testMandatoryAttributesPresentInConstraintDescriptor()
Check that groups(), message() and payload() are always in the attributes.void
testNoImplicitGroupWhenQueryingInterfaceDirectly()
Check that the groups() attribute value does not contain the implicit interface group when querying the interface directly.-
Methods inherited from class org.apache.bval.jsr.ValidationTestBase
createValidator, setUp, setupValidatorFactory
-
-
-
-
Method Detail
-
testMandatoryAttributesPresentInConstraintDescriptor
public void testMandatoryAttributesPresentInConstraintDescriptor()
Check that groups(), message() and payload() are always in the attributes.
-
testCorrectValueForInheritedGroupsAttribute
public void testCorrectValueForInheritedGroupsAttribute()
Check that the groups() attribute value has the correct value when inheriting groups.
-
testImplicitGroupIsPresent
public void testImplicitGroupIsPresent()
Check that the groups() attribute value contains the correct interface as implicit group when the constraint is defined in that interface instead of the queried class.
-
testNoImplicitGroupWhenQueryingInterfaceDirectly
public void testNoImplicitGroupWhenQueryingInterfaceDirectly()
Check that the groups() attribute value does not contain the implicit interface group when querying the interface directly.
-
testElementDescriptorGetElementClass
public void testElementDescriptorGetElementClass()
Check that the implementations ofElementDescriptor.getElementClass()
work as defined in the spec.
-
testConstraintFinderLookingAt
public void testConstraintFinderLookingAt()
Check the correct behavior ofElementDescriptor.ConstraintFinder.lookingAt(jakarta.validation.metadata.Scope)
.
-
testDescriptorCaching
public void testDescriptorCaching()
-
-