public class

MockApplicationUser

extends DelegatingApplicationUser
java.lang.Object
   ↳ com.atlassian.jira.user.DelegatingApplicationUser
     ↳ com.atlassian.jira.user.MockApplicationUser

Class Overview

A convenient mock for ApplicationUser.

Summary

Public Constructors
MockApplicationUser(String username)
Uses the lowercase form of the supplied username as the key.
MockApplicationUser(String username, String displayName, String email)
Uses the lowercase form of the supplied username as the key.
MockApplicationUser(String userKey, String username)
Uses the given key as-is.
MockApplicationUser(String userKey, String username, String displayName, String email)
Uses the given key as-is.
[Expand]
Inherited Methods
From class com.atlassian.jira.user.DelegatingApplicationUser
From class java.lang.Object
From interface com.atlassian.jira.user.ApplicationUser
From interface java.security.Principal

Public Constructors

public MockApplicationUser (String username)

Uses the lowercase form of the supplied username as the key.

Parameters
username as for MockUser(String)

public MockApplicationUser (String username, String displayName, String email)

Uses the lowercase form of the supplied username as the key.

public MockApplicationUser (String userKey, String username)

Uses the given key as-is.

Parameters
userKey desired user's Key, the value to be returned for getKey()
username as for MockUser(String)

public MockApplicationUser (String userKey, String username, String displayName, String email)

Uses the given key as-is.

Parameters
userKey desired user's Key, the value to be returned for getKey()
username as for MockUser(String, String, String)
displayName as for MockUser(String, String, String)
email as for MockUser(String, String, String)