public class BeanDescriptorTest extends ValidationTestBase
BeanDescriptor
and its dependent
interfaces.Modifier and Type | Class and 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 |
factory, validator
Constructor and Description |
---|
BeanDescriptorTest() |
Modifier and Type | Method and Description |
---|---|
void |
testConstraintFinderLookingAt()
Check the correct behavior of
ElementDescriptor.ConstraintFinder.lookingAt(javax.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 of
ElementDescriptor.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.
|
createValidator, setUp, setupValidatorFactory
public void testMandatoryAttributesPresentInConstraintDescriptor()
public void testCorrectValueForInheritedGroupsAttribute()
public void testImplicitGroupIsPresent()
public void testNoImplicitGroupWhenQueryingInterfaceDirectly()
public void testElementDescriptorGetElementClass()
ElementDescriptor.getElementClass()
work as defined in the spec.public void testConstraintFinderLookingAt()
ElementDescriptor.ConstraintFinder.lookingAt(javax.validation.metadata.Scope)
.public void testDescriptorCaching()
Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.