Class TestUser
- java.lang.Object
-
- com.atlassian.bamboo.testutils.user.TestUser
-
- All Implemented Interfaces:
com.atlassian.bamboo.specs.util.AuthenticationProvider
,com.atlassian.bamboo.specs.util.UserPasswordCredentials
public class TestUser extends Object implements com.atlassian.bamboo.specs.util.UserPasswordCredentials
-
-
Field Summary
Fields Modifier and Type Field Description static TestUser
A_USER
static TestUser
ADMIN
static String
ADMIN_NAME
static Set<TestUser>
autocreatedUsers
static TestUser
BOB_BUILDER
String
email
boolean
enabled
String
fullName
Set<TestGroup>
groups
static String
INTERNAL_DIRECTORY_NAME
String
jabberAddress
static TestUser
JOE_USER
static String
JOE_USER_NAME
String
password
BambooPrincipalPermissions
permissions
static TestUser
RESTRICTED_ADMIN
String
username
-
Constructor Summary
Constructors Constructor Description TestUser(String username, String password)
TestUser(String username, String password, boolean enabled, String fullName, String email, String jabberAddress, Collection<TestGroup> groups)
TestUser(String username, String password, String fullName, String email, String jabberAddress, Collection<TestGroup> groups)
TestUser(String username, String password, String fullName, String email, Collection<TestGroup> groups)
TestUser(String username, String password, Collection<TestGroup> groups)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestUser
createSimpleUser(String username)
static TestUser
createUniqueUser(TestGroup... groups)
static TestUser
createUniqueUser(String usernamePrefix, TestGroup... groups)
String
getEmail()
String
getFullName()
Set<TestGroup>
getGroups()
String
getPassword()
String
getUsername()
String
toString()
-
-
-
Field Detail
-
ADMIN_NAME
public static final String ADMIN_NAME
- See Also:
- Constant Field Values
-
INTERNAL_DIRECTORY_NAME
public static final String INTERNAL_DIRECTORY_NAME
- See Also:
- Constant Field Values
-
ADMIN
public static final TestUser ADMIN
-
RESTRICTED_ADMIN
public static final TestUser RESTRICTED_ADMIN
-
BOB_BUILDER
public static final TestUser BOB_BUILDER
-
JOE_USER_NAME
public static final String JOE_USER_NAME
- See Also:
- Constant Field Values
-
JOE_USER
public static final TestUser JOE_USER
-
A_USER
public static final TestUser A_USER
-
username
public final String username
-
password
public final String password
-
fullName
public final String fullName
-
email
public final String email
-
enabled
public final boolean enabled
-
jabberAddress
public final String jabberAddress
-
permissions
public final BambooPrincipalPermissions permissions
-
-
Constructor Detail
-
TestUser
public TestUser(String username, String password, String fullName, String email, Collection<TestGroup> groups)
-
TestUser
public TestUser(String username, String password, String fullName, String email, String jabberAddress, Collection<TestGroup> groups)
-
TestUser
public TestUser(String username, String password, boolean enabled, String fullName, String email, String jabberAddress, Collection<TestGroup> groups)
-
TestUser
public TestUser(String username, String password, Collection<TestGroup> groups)
-
-
Method Detail
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfacecom.atlassian.bamboo.specs.util.UserPasswordCredentials
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfacecom.atlassian.bamboo.specs.util.UserPasswordCredentials
-
getFullName
public String getFullName()
-
getEmail
public String getEmail()
-
createUniqueUser
public static TestUser createUniqueUser(String usernamePrefix, TestGroup... groups)
-
-