public class ConstraintCompositionTest extends ValidationTestBase
Modifier and Type | Class and Description |
---|---|
static class |
ConstraintCompositionTest.Code |
static interface |
ConstraintCompositionTest.ElevenDigitsCode |
static interface |
ConstraintCompositionTest.Group1 |
static interface |
ConstraintCompositionTest.Group2 |
static class |
ConstraintCompositionTest.Man |
static interface |
ConstraintCompositionTest.ManName |
static class |
ConstraintCompositionTest.Payload1 |
static class |
ConstraintCompositionTest.Payload2 |
static class |
ConstraintCompositionTest.Person |
static interface |
ConstraintCompositionTest.PersonId |
static interface |
ConstraintCompositionTest.PersonName |
factory, validator
Constructor and Description |
---|
ConstraintCompositionTest() |
Modifier and Type | Method and Description |
---|---|
void |
test1LevelInheritance()
Check correct group inheritance on constraint composition on a 1 level
hierarchy.
|
void |
test2LevelInheritance()
Check correct group inheritance on constraint composition on a 2 level
hierarchy.
|
void |
testAnnotationGroupsAreInherited()
Checks that the groups() value of the constraint annotations are
correctly set to the inherited ones.
|
void |
testAnnotationPayloadsAreInherited()
Checks that the payload() value of the constraint annotations are
correctly set to the inherited ones.
|
void |
testIndexedOverridesAttributes()
Checks that
OverridesAttribute.constraintIndex() parsing and
applying works. |
void |
testReportAsAsingleViolation()
Checks that errors are reported correctly when using
ReportAsSingleViolation . |
createValidator, setUp, setupValidatorFactory
public void test1LevelInheritance()
public void test2LevelInheritance()
public void testAnnotationGroupsAreInherited()
public void testAnnotationPayloadsAreInherited()
public void testIndexedOverridesAttributes()
OverridesAttribute.constraintIndex()
parsing and
applying works.public void testReportAsAsingleViolation()
ReportAsSingleViolation
.Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.