com.atlassian.jira.pageobjects.project.fields
Class MockFieldConfiguration

java.lang.Object
  extended by 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

Nested Class Summary
static class MockFieldConfiguration.MockIssueType
           
 
Nested classes/interfaces inherited from interface com.atlassian.jira.pageobjects.project.fields.FieldConfiguration
FieldConfiguration.IssueType
 
Constructor Summary
MockFieldConfiguration(String name)
           
 
Method Summary
 boolean equals(Object o)
           
 MockFieldConfiguration fields(List<Field> fields)
           
 List<Field> getFields()
           
 List<FieldConfiguration.IssueType> getIssueTypes()
           
 String getName()
           
 String getSharedProjectsText()
           
 EditFieldConfigPage gotoEditFieldConfigPage()
           
 boolean hasEditLink()
           
 int hashCode()
           
 boolean hasSharedProjects()
           
 boolean isDefault()
           
 MockFieldConfiguration issueTypes(Map<String,String> issueTypeToIcons)
           
 SharedProjectsDialog openSharedProjects()
           
 MockFieldConfiguration setEditLink(boolean editLink)
           
 MockFieldConfiguration setHasSharedProjects(boolean sharedProjects)
           
 MockFieldConfiguration setIsDefault(boolean isDefault)
           
 MockFieldConfiguration setSharedProjectText(String sharedProjectsText)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockFieldConfiguration

public MockFieldConfiguration(String name)
Method Detail

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.