Skip to content

Commit

Permalink
更新测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
happyxiaofan committed Sep 13, 2017
1 parent 816eace commit 3eab491
Showing 1 changed file with 7 additions and 3 deletions.
Expand Up @@ -107,9 +107,13 @@ public void deleteTest() {

@Test
public void deleteTest2() {
UserExample example = new UserExample();
example.createCriteria().andUserNameEqualTo("springboot");
assertTrue(userMapper.deleteByExample(example) > 0);
List<User> users = userMapper.selectByExample(new UserExample());
if (!CollectionUtils.isEmpty(users)) {
User user = users.get(0);
UserExample example = new UserExample();
example.createCriteria().andIdEqualTo(user.getId());
assertTrue(userMapper.deleteByExample(example) > 0);
}
}

@Test
Expand Down

0 comments on commit 3eab491

Please sign in to comment.