org.cert.cc.jira.email.handler.mock
Class MockCustomFieldFactory
java.lang.Object
org.cert.cc.jira.email.handler.mock.MockCustomFieldFactory
- All Implemented Interfaces:
- CustomFieldFactory
public class MockCustomFieldFactory
- extends Object
- implements CustomFieldFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockCustomFieldFactory
public MockCustomFieldFactory()
updateCustomFieldOnIssue
public String updateCustomFieldOnIssue(CustomField cf,
MutableIssue issue,
String value)
- Description copied from interface:
CustomFieldFactory
- This will correctly set a single custom value field on a mutable issue that has not been persisted yet. Primary use for this method would be
during creation of a brand new issue with custom fields.
- Specified by:
updateCustomFieldOnIssue in interface CustomFieldFactory
- Parameters:
cf - - {@link CustomField)issue - - MutableIssuevalue - - String value to put into the custom field.
fieldExistsByName
public boolean fieldExistsByName(String name)
- Description copied from interface:
CustomFieldFactory
- Returns if the field exists by name
- Specified by:
fieldExistsByName in interface CustomFieldFactory
getCustomField
public CustomField getCustomField(String name)
- Description copied from interface:
CustomFieldFactory
- Returns the custom field itself
- Specified by:
getCustomField in interface CustomFieldFactory
Copyright © 2012 Carnegie Mellon University