com.atlassian.jira.pageobjects.project.people
Class MockPeopleRole

java.lang.Object
  extended by com.atlassian.jira.pageobjects.project.people.MockPeopleRole
All Implemented Interfaces:
PeopleRole

public class MockPeopleRole
extends Object
implements PeopleRole

A mock for a row on the Project Configuration people tab, useful for building expected test outcomes

Since:
v4.4

Nested Class Summary
static class MockPeopleRole.MockGroup
           
static class MockPeopleRole.MockUser
           
 
Nested classes/interfaces inherited from interface com.atlassian.jira.pageobjects.project.people.PeopleRole
PeopleRole.Group, PeopleRole.User
 
Constructor Summary
MockPeopleRole(String name)
           
MockPeopleRole(String name, List<PeopleRole.User> users, List<PeopleRole.Group> groups)
           
 
Method Summary
 MockPeopleRole addGroup(String name, boolean hasIcon)
           
 MockPeopleRole addUser(String name, String avatarSrc)
           
 EditPeopleRoleForm edit(String dataField)
           
 boolean equals(Object other)
           
 List<PeopleRole.Group> getGroups()
           
 String getName()
           
 List<PeopleRole.User> getUsers()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockPeopleRole

public MockPeopleRole(String name,
                      List<PeopleRole.User> users,
                      List<PeopleRole.Group> groups)

MockPeopleRole

public MockPeopleRole(String name)
Method Detail

addUser

public MockPeopleRole addUser(String name,
                              String avatarSrc)

addGroup

public MockPeopleRole addGroup(String name,
                               boolean hasIcon)

getUsers

public List<PeopleRole.User> getUsers()
Specified by:
getUsers in interface PeopleRole

getGroups

public List<PeopleRole.Group> getGroups()
Specified by:
getGroups in interface PeopleRole

getName

public String getName()
Specified by:
getName in interface PeopleRole

edit

@Nonnull
public EditPeopleRoleForm edit(String dataField)
Specified by:
edit in interface PeopleRole

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2014 Atlassian. All Rights Reserved.