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 ofBeanDescriptorand its dependent interfaces.- Author:
 - Carlos Vara
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBeanDescriptorTest.Accountstatic classBeanDescriptorTest.Formstatic interfaceBeanDescriptorTest.Group1static interfaceBeanDescriptorTest.Passwordstatic interfaceBeanDescriptorTest.Personstatic classBeanDescriptorTest.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 voidtestConstraintFinderLookingAt()Check the correct behavior ofElementDescriptor.ConstraintFinder.lookingAt(jakarta.validation.metadata.Scope).voidtestCorrectValueForInheritedGroupsAttribute()Check that the groups() attribute value has the correct value when inheriting groups.voidtestDescriptorCaching()voidtestElementDescriptorGetElementClass()Check that the implementations ofElementDescriptor.getElementClass()work as defined in the spec.voidtestImplicitGroupIsPresent()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.voidtestMandatoryAttributesPresentInConstraintDescriptor()Check that groups(), message() and payload() are always in the attributes.voidtestNoImplicitGroupWhenQueryingInterfaceDirectly()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()
 
 - 
 
 -