- Fix unit tests ...

This commit is contained in:
Paulo Gustavo Veiga
2012-07-12 23:56:04 -03:00
parent 6582f073bd
commit a82439975d
5 changed files with 106 additions and 101 deletions

View File

@@ -122,7 +122,7 @@ public class AdminController extends BaseController {
userService.changePassword(user);
}
@RequestMapping(method = RequestMethod.DELETE)
@RequestMapping(method = RequestMethod.DELETE,value = "admin/users/{id}")
@ResponseStatus(value = HttpStatus.NO_CONTENT)
public void getUserByEmail(@PathVariable long id) throws IOException, WiseMappingException {
final User user = userService.getUserBy(id);

View File

@@ -78,7 +78,7 @@ public class RestUser {
return user.getId();
}
public void setId(int id) {
public void setId(long id) {
user.setId(id);
}