public class JiraServiceMock extends Object implements JiraService
| Constructor and Description |
|---|
JiraServiceMock() |
| Modifier and Type | Method and Description |
|---|---|
String |
create(JiraTask task,
CoinUser user)
Create a new task in Jira.
|
void |
delete(String key)
Delete a task from Jira.
|
void |
doAction(String key,
JiraTask.Action action)
Re-open or close a Jira task.
|
List<JiraTask> |
getTasks(List<String> keys)
Retrieve specific tasks from Jira.
|
void |
setBaseUrl(String baseUrl)
Set the base URL of the Jira instance to use
|
void |
setPassword(String password)
Set the password to use to authenticate against Jira
|
void |
setProjectKey(String projectKey)
The project key used to submit issues
|
void |
setUsername(String username)
Set the username to use to authenticate against Jira
|
public String create(JiraTask task, CoinUser user) throws IOException
JiraServicecreate in interface JiraServicetask - the task you want to createuser - the user which issued the requestIOException - when communicating with jira failspublic void delete(String key) throws IOException
JiraServicedelete in interface JiraServicekey - the task keyIOException - when communicating with jira failspublic void doAction(String key, JiraTask.Action action) throws IOException
JiraServicedoAction in interface JiraServicekey - the task keyaction - what action to undertakeIOException - when communicating with jira failspublic List<JiraTask> getTasks(List<String> keys) throws IOException
JiraServicegetTasks in interface JiraServicekeys - a list of the task keys you want to retrieveIOException - when communicating with jira failspublic void setBaseUrl(String baseUrl)
JiraServicesetBaseUrl in interface JiraServicebaseUrl - Stringpublic void setUsername(String username)
JiraServicesetUsername in interface JiraServiceusername - the username as a Stringpublic void setPassword(String password)
JiraServicesetPassword in interface JiraServicepassword - Stringpublic void setProjectKey(String projectKey)
JiraServicesetProjectKey in interface JiraServiceprojectKey - StringCopyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.