Clover Coverage Report - itracker
Coverage timestamp: Tue May 1 2012 16:42:12 CEST
5   31   5   1
0   22   1   5
5     1  
1    
 
 
  UserPTO       Line # 9 5 5 0% 0.0
 
No Tests
 
1    package org.itracker.web.ptos;
2   
3    import java.util.Date;
4   
5    import org.itracker.model.User;
6    import org.itracker.services.util.UserUtilities;
7    import org.itracker.web.util.SessionManager;
8   
 
9    public class UserPTO {
10    private User user;
11   
 
12  0 toggle public UserPTO(User user) {
13  0 this.user = user;
14    }
15   
 
16  0 toggle public User getUser() {
17  0 return user;
18    }
19   
 
20  0 toggle public boolean isStatusLocked() {
21  0 return (user.getStatus() == UserUtilities.STATUS_LOCKED);
22    }
23   
 
24  0 toggle public boolean isRegisrationTypeSelf() {
25  0 return (user.getRegistrationType() == UserUtilities.REGISTRATION_TYPE_SELF);
26    }
27   
 
28  0 toggle public Date getLastAccess() {
29  0 return SessionManager.getSessionLastAccess(user.getLogin());
30    }
31    }