String username = "makersoft_" + i;
String password = "makersoft_" + i;
int age = random.nextInt(30);
int gender = (i % 2 == 0) ? User.SEX_MALE : User.SEX_FEMALE;
User user = this.insertUser(username, password, age, gender);
Assert.assertNotNull(user.getId());
}
List<User> users = userMapper.findByGender(User.SEX_MALE);
Assert.assertEquals(5, users.size());
}