File tree Expand file tree Collapse file tree
src/main/java/it/aboutbits/springboot/testing/validation/rule Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import it .aboutbits .springboot .testing .validation .core .Rule ;
55import it .aboutbits .springboot .testing .validation .core .ValidationRulesData ;
66import it .aboutbits .springboot .testing .validation .source .BlankValueSource ;
7+ import it .aboutbits .springboot .testing .validation .source .NullValueSource ;
78import lombok .NonNull ;
89
910@ SuppressWarnings ("unchecked" )
@@ -12,6 +13,9 @@ default V notBlank(@NonNull String property) {
1213 addRule (
1314 new Rule (property , BlankValueSource .class )
1415 );
16+ addRule (
17+ new Rule (property , NullValueSource .class )
18+ );
1519 return (V ) this ;
1620 }
1721}
Original file line number Diff line number Diff line change 44import it .aboutbits .springboot .testing .validation .core .Rule ;
55import it .aboutbits .springboot .testing .validation .core .ValidationRulesData ;
66import it .aboutbits .springboot .testing .validation .source .EmptyValueSource ;
7+ import it .aboutbits .springboot .testing .validation .source .NullValueSource ;
78import lombok .NonNull ;
89
910@ SuppressWarnings ("unchecked" )
@@ -12,6 +13,9 @@ default V notEmpty(@NonNull String property) {
1213 addRule (
1314 new Rule (property , EmptyValueSource .class )
1415 );
16+ addRule (
17+ new Rule (property , NullValueSource .class )
18+ );
1519 return (V ) this ;
1620 }
1721}
You can’t perform that action at this time.
0 commit comments