File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
main/java/org/baeldung/javabeanconstraints/validationgroup
test/java/org/baeldung/javabeanconstraints/validationgroup Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 4
4
import javax .validation .constraints .NotBlank ;
5
5
6
6
public class RegistrationForm {
7
- @ NotBlank (groups = BasicInfo .class )
7
+ @ NotBlank (groups = BasicInfo .class )
8
8
private String firstName ;
9
- @ NotBlank (groups = BasicInfo .class )
9
+ @ NotBlank (groups = BasicInfo .class )
10
10
private String lastName ;
11
- @ Email (groups = BasicInfo .class )
11
+ @ Email (groups = BasicInfo .class )
12
12
private String email ;
13
- @ NotBlank (groups = BasicInfo .class )
13
+ @ NotBlank (groups = BasicInfo .class )
14
14
private String phone ;
15
-
16
- @ NotBlank (groups = AdvanceInfo .class )
15
+
16
+ @ NotBlank (groups = AdvanceInfo .class )
17
17
private String street ;
18
- @ NotBlank (groups = AdvanceInfo .class )
18
+ @ NotBlank (groups = AdvanceInfo .class )
19
19
private String houseNumber ;
20
- @ NotBlank (groups = AdvanceInfo .class )
20
+ @ NotBlank (groups = AdvanceInfo .class )
21
21
private String zipCode ;
22
- @ NotBlank (groups = AdvanceInfo .class )
22
+ @ NotBlank (groups = AdvanceInfo .class )
23
23
private String city ;
24
- @ NotBlank (groups = AdvanceInfo .class )
24
+ @ NotBlank (groups = AdvanceInfo .class )
25
25
private String contry ;
26
26
27
27
public String getStreet () {
Original file line number Diff line number Diff line change @@ -61,10 +61,10 @@ private RegistrationForm buildRegistrationFormWithBasicInfo() {
61
61
62
62
private RegistrationForm buildRegistrationFormWithAdvanceInfo () {
63
63
RegistrationForm form = new RegistrationForm ();
64
- return popultaeAdvanceInfo (form );
64
+ return populateAdvanceInfo (form );
65
65
}
66
66
67
- private RegistrationForm popultaeAdvanceInfo (RegistrationForm form ) {
67
+ private RegistrationForm populateAdvanceInfo (RegistrationForm form ) {
68
68
form .setCity ("Berlin" );
69
69
form .setContry ("DE" );
70
70
form .setStreet ("alexa str." );
@@ -75,6 +75,6 @@ private RegistrationForm popultaeAdvanceInfo(RegistrationForm form) {
75
75
76
76
private RegistrationForm buildRegistrationFormWithBasicAndAdvanceInfo () {
77
77
RegistrationForm form = buildRegistrationFormWithBasicInfo ();
78
- return popultaeAdvanceInfo (form );
78
+ return populateAdvanceInfo (form );
79
79
}
80
80
}
You can’t perform that action at this time.
0 commit comments