|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.user.DelegatingApplicationUser com.atlassian.jira.user.MockApplicationUser
public class MockApplicationUser
A convenient mock for ApplicationUser
.
Constructor Summary | |
---|---|
MockApplicationUser(String username)
Uses the lowercase form of
the supplied username as the key. |
|
MockApplicationUser(String userKey,
String username)
Uses the given key as-is. |
|
MockApplicationUser(String username,
String displayName,
String email)
Uses the lowercase form of
the supplied username as the key. |
|
MockApplicationUser(String userKey,
String username,
String displayName,
String email)
Uses the given key as-is. |
Method Summary |
---|
Methods inherited from class com.atlassian.jira.user.DelegatingApplicationUser |
---|
equals, getDirectoryId, getDirectoryUser, getDisplayName, getEmailAddress, getKey, getName, getUsername, hashCode, isActive, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MockApplicationUser(String username)
lowercase
form of
the supplied username
as the key.
username
- as for MockUser.MockUser(String)
public MockApplicationUser(String username, String displayName, String email)
lowercase
form of
the supplied username
as the key.
username
- as for MockUser.MockUser(String,String,String)
displayName
- as for MockUser.MockUser(String,String,String)
email
- as for MockUser.MockUser(String,String,String)
public MockApplicationUser(String userKey, String username)
userKey
- desired user's Key, the value to be returned for ApplicationUser.getKey()
username
- as for MockUser.MockUser(String)
public MockApplicationUser(String userKey, String username, String displayName, String email)
userKey
- desired user's Key, the value to be returned for ApplicationUser.getKey()
username
- as for MockUser.MockUser(String,String,String)
displayName
- as for MockUser.MockUser(String,String,String)
email
- as for MockUser.MockUser(String,String,String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |