Skip to content

Commit

Permalink
添加对user与tag的查询测试
Browse files Browse the repository at this point in the history
  • Loading branch information
suvvm committed Nov 21, 2019
1 parent ff18956 commit c80a16f
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,23 @@ class OnlinesurveyApplicationTests {
* @Description: 用于测试数据库查询
*/
@Test
public void selectTest() {
public void selectTag() {
Tag t = new Tag();
// t.setId(400000001);
t.setName("秃头");
List<Tag> tags = tagMapper.selectTags(t);
for(Tag tag : tags){
System.out.println(tag.getId() + " " + tag.getName() + " " + tag.getDescription());
System.out.println(tag.toString());
}
}

@Test
public void selectUser() {
User u = new User();
u.setName("江民民");
List<User> users = userMapper.getUser(u);
for(User user : users) {
System.out.println(user.toString());
}
}

Expand Down

0 comments on commit c80a16f

Please sign in to comment.