File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
validator/src/test/java/io/avaje/validation/core Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 4
4
import java .util .Map ;
5
5
6
6
import io .avaje .validation .Validator ;
7
+ import io .avaje .validation .adapter .CoreValidation ;
7
8
import io .avaje .validation .adapter .ValidationAdapter ;
8
9
import io .avaje .validation .adapter .ValidationRequest ;
9
10
import jakarta .validation .constraints .AssertTrue ;
@@ -19,10 +20,13 @@ public final class CustomerValidationAdapter implements ValidationAdapter<Custom
19
20
private final ValidationAdapter <Object > activeDateAdapter ;
20
21
private final ValidationAdapter <List <Contact >> contactsValidator ;
21
22
23
+ private final CoreValidation core ;
24
+
22
25
private final ValidationAdapter <Address > addressValidator ;
23
26
private final ValidationAdapter <Contact > contactValidator ;
24
27
25
28
public CustomerValidationAdapter (Validator validator ) {
29
+ this .core = validator .core ();
26
30
this .activeAdapter =
27
31
validator .<Boolean >annotationAdapter (AssertTrue .class , Map .of ("message" , "not true" ));
28
32
You can’t perform that action at this time.
0 commit comments