Added additional tests for UserService login

This commit is contained in:
Sankaranarayanan Viswanathan
2014-10-08 20:59:05 -04:00
parent dce0cf7ee4
commit 174be9c2d1
2 changed files with 72 additions and 1 deletions

View File

@@ -103,8 +103,10 @@ public class UserService {
/**
* should triggers after successful login
*
* Note: Visibility changed to protected to enabled spying on this method
*/
private void afterLogin(User user) {
protected void afterLogin(User user) {
Date lastLogin = user.getLastLogin();
Date now = new Date();