|
|
|
@ -232,9 +232,9 @@ class HelpApplicationTests { |
|
|
|
|
*/ |
|
|
|
|
@Test |
|
|
|
|
public void queryFriend(){ |
|
|
|
|
Page<List<Friend>> page=friendMapper.count("123","6", "", 3); |
|
|
|
|
Page<List<Friend>> page=friendMapper.count("123","", "2", 3); |
|
|
|
|
Assertions.assertEquals(1, (long) page.getCount()); |
|
|
|
|
List<Friend> user=friendMapper.getFriend("123","6", "上海", 0,3); |
|
|
|
|
List<Friend> user=friendMapper.getFriend("123","", "2", 0,3); |
|
|
|
|
Assertions.assertEquals(1,user.size()); |
|
|
|
|
user=friendMapper.getFriend("123","6", "广州", 0,3); |
|
|
|
|
Assertions.assertTrue(user.isEmpty()); |
|
|
|
|