@Test public void listRoles() { }
public List<Role> listRoles() { return roleDao.findAll(); }
RoleService { public List<Role> listRoles() { return roleDao.findAll(); } }
RoleService { public List<Role> listRoles() { return roleDao.findAll(); } @Inject  RoleService(RoleDao roleDao); }
RoleService { public List<Role> listRoles() { return roleDao.findAll(); } @Inject  RoleService(RoleDao roleDao); List<Role> listRoles(); Role createRole(Role role); Role getRole(String roleId); boolean hasRole(String roleName); void deleteRole(String roleId); void updateRole(String roleId, Role role); }
RoleService { public List<Role> listRoles() { return roleDao.findAll(); } @Inject  RoleService(RoleDao roleDao); List<Role> listRoles(); Role createRole(Role role); Role getRole(String roleId); boolean hasRole(String roleName); void deleteRole(String roleId); void updateRole(String roleId, Role role);  }