@Test public void testGetName() throws Exception { String name = "banchuanyu"; User user = userService.get(name); Assert.assertNotNull(user); Assert.assertEquals(1, user.getId()); }
public User get(long id) { return userBiz.getById(id); }
UserService { public User get(long id) { return userBiz.getById(id); } }
UserService { public User get(long id) { return userBiz.getById(id); }  }
UserService { public User get(long id) { return userBiz.getById(id); }  User get(long id); User get(String name); User create(String name); User createIfNotExist(String name); List<User> listByTeams(Set<Long> teams, Status status, Role role); Set<String> listNamesByTeams(Set<Long> teamIds, Status status, Role role); }
UserService { public User get(long id) { return userBiz.getById(id); }  User get(long id); User get(String name); User create(String name); User createIfNotExist(String name); List<User> listByTeams(Set<Long> teams, Status status, Role role); Set<String> listNamesByTeams(Set<Long> teamIds, Status status, Role role);  }