Skip to content

Commit

Permalink
fix test case user service
Browse files Browse the repository at this point in the history
  • Loading branch information
haonase06089 committed Apr 24, 2020
1 parent 460ae87 commit 9bdc22f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public String isValidUser(User user) {
if (!user.getUserStatus().equals(UserStatusConstant.ACTIVE) && !user.getUserStatus().equals(UserStatusConstant.BAN)) {
return "status is invalid";
}
if (user.getGender() != null && !user.getGender().equals(UserGenderConstant.OTHER) && !user.getGender().equals(UserGenderConstant.MALE) && !user.getGender().equals(UserGenderConstant.FEMALE)){
if (user.getGender() != null && !user.getGender().equals(UserGenderConstant.OTHER) && !user.getGender().equals(UserGenderConstant.MALE) && !user.getGender().equals(UserGenderConstant.FEMALE) && !user.getGender().isEmpty()){
return "gender is invalid";
}
if (!isEmptyString(user.getFullName()).isEmpty()) {
Expand Down

0 comments on commit 9bdc22f

Please sign in to comment.