Class UserAccountBuilder
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.UserAccountBuilder
-
public class UserAccountBuilder extends Object
Fluent api for creating users in the tests.
-
-
Constructor Summary
Constructors Constructor Description UserAccountBuilder(String username)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEmail()
List<String>
getGlobalRolesIds()
Date
getLastLoginDate()
String
getName()
Map<SProject,String>
getProjectRoles()
String
getUsername()
boolean
isEmailVerified()
static UserAccountBuilder
username(String username)
UserAccountBuilder
withEmail(String email)
UserAccountBuilder
withGlobalRole(String roleId)
UserAccountBuilder
withLastLogin(Date lastLoginDate)
UserAccountBuilder
withName(String name)
UserAccountBuilder
withProjectRole(SProject project, String roleId)
UserAccountBuilder
withVerifiedEmail(String email)
-
-
-
Constructor Detail
-
UserAccountBuilder
public UserAccountBuilder(@NotNull String username)
-
-
Method Detail
-
username
public static UserAccountBuilder username(String username)
-
withName
public UserAccountBuilder withName(String name)
-
withEmail
public UserAccountBuilder withEmail(String email)
-
withVerifiedEmail
public UserAccountBuilder withVerifiedEmail(String email)
-
withLastLogin
public UserAccountBuilder withLastLogin(Date lastLoginDate)
-
withGlobalRole
public UserAccountBuilder withGlobalRole(String roleId)
-
withProjectRole
public UserAccountBuilder withProjectRole(SProject project, String roleId)
-
getUsername
@NotNull public String getUsername()
-
getName
@Nullable public String getName()
-
getEmail
@Nullable public String getEmail()
-
isEmailVerified
public boolean isEmailVerified()
-
getLastLoginDate
@Nullable public Date getLastLoginDate()
-
-