Package org.apache.bval.jsr
Class ContextConstraintValidatorFactoryTest
- java.lang.Object
-
- org.apache.bval.jsr.ValidationTestBase
-
- org.apache.bval.jsr.ContextConstraintValidatorFactoryTest
-
public class ContextConstraintValidatorFactoryTest extends ValidationTestBase
https://issues.apache.org/jira/browse/BVAL-111 was a serious regression that resulted in BVal's bypassing the context-specificConstraintValidatorFactory
, rather using the instance available from theValidatorFactory
. Thus any solutions to e.g. inject collaborators intoConstraintValidator
implementations would fail.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ContextConstraintValidatorFactoryTest.Contrived
static class
ContextConstraintValidatorFactoryTest.Example
-
Field Summary
-
Fields inherited from class org.apache.bval.jsr.ValidationTestBase
factory, validator
-
-
Constructor Summary
Constructors Constructor Description ContextConstraintValidatorFactoryTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected jakarta.validation.Validator
createValidator()
Create the validator instance.void
testContextBoundConstraintValidatorFactory()
-
Methods inherited from class org.apache.bval.jsr.ValidationTestBase
setUp, setupValidatorFactory
-
-
-
-
Method Detail
-
createValidator
protected jakarta.validation.Validator createValidator()
Description copied from class:ValidationTestBase
Create the validator instance.- Overrides:
createValidator
in classValidationTestBase
- Returns:
- Validator
-
testContextBoundConstraintValidatorFactory
public void testContextBoundConstraintValidatorFactory()
-
-