Class BeanDescriptorTest


  • public class BeanDescriptorTest
    extends ValidationTestBase
    Tests the implementation of BeanDescriptor and its dependent interfaces.
    Author:
    Carlos Vara
    • Constructor Detail

      • BeanDescriptorTest

        public BeanDescriptorTest()
    • 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 of ElementDescriptor.getElementClass() work as defined in the spec.
      • testConstraintFinderLookingAt

        public void testConstraintFinderLookingAt()
        Check the correct behavior of ElementDescriptor.ConstraintFinder.lookingAt(jakarta.validation.metadata.Scope).
      • testDescriptorCaching

        public void testDescriptorCaching()