com.atlassian.jira.pageobjects.project.fields
Class MockFieldConfiguration
java.lang.Object
com.atlassian.jira.pageobjects.project.fields.MockFieldConfiguration
- All Implemented Interfaces:
- FieldConfiguration
public class MockFieldConfiguration
- extends Object
- implements FieldConfiguration
Mock implementation for easy comparisons in tests.
- Since:
- v4.4
MockFieldConfiguration
public MockFieldConfiguration(String name)
fields
public MockFieldConfiguration fields(List<Field> fields)
setIsDefault
public MockFieldConfiguration setIsDefault(boolean isDefault)
setHasSharedProjects
public MockFieldConfiguration setHasSharedProjects(boolean sharedProjects)
setSharedProjectText
public MockFieldConfiguration setSharedProjectText(String sharedProjectsText)
issueTypes
public MockFieldConfiguration issueTypes(Map<String,String> issueTypeToIcons)
getName
public String getName()
- Specified by:
getName
in interface FieldConfiguration
getFields
public List<Field> getFields()
- Specified by:
getFields
in interface FieldConfiguration
isDefault
public boolean isDefault()
- Specified by:
isDefault
in interface FieldConfiguration
getIssueTypes
public List<FieldConfiguration.IssueType> getIssueTypes()
- Specified by:
getIssueTypes
in interface FieldConfiguration
openSharedProjects
public SharedProjectsDialog openSharedProjects()
- Specified by:
openSharedProjects
in interface FieldConfiguration
gotoEditFieldConfigPage
public EditFieldConfigPage gotoEditFieldConfigPage()
- Specified by:
gotoEditFieldConfigPage
in interface FieldConfiguration
hasSharedProjects
public boolean hasSharedProjects()
- Specified by:
hasSharedProjects
in interface FieldConfiguration
getSharedProjectsText
public String getSharedProjectsText()
- Specified by:
getSharedProjectsText
in interface FieldConfiguration
hasEditLink
public boolean hasEditLink()
- Specified by:
hasEditLink
in interface FieldConfiguration
setEditLink
public MockFieldConfiguration setEditLink(boolean editLink)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2002-2011 Atlassian. All Rights Reserved.