|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.csa.service.impl.JiraServiceMock
public class JiraServiceMock
| Constructor Summary | |
|---|---|
JiraServiceMock()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JiraServiceMock()
| Method Detail |
|---|
public String create(JiraTask task,
CoinUser user)
throws IOException
JiraService
create in interface JiraServicetask - the task you want to createuser - the user which issued the request
IOException - when communicating with jira fails
public void delete(String key)
throws IOException
JiraService
delete in interface JiraServicekey - the task key
IOException - when communicating with jira fails
public void doAction(String key,
JiraTask.Action action)
throws IOException
JiraService
doAction in interface JiraServicekey - the task keyaction - what action to undertake
IOException - when communicating with jira fails
public List<JiraTask> getTasks(List<String> keys)
throws IOException
JiraService
getTasks in interface JiraServicekeys - a list of the task keys you want to retrieve
IOException - when communicating with jira failspublic void setBaseUrl(String baseUrl)
JiraService
setBaseUrl in interface JiraServicebaseUrl - Stringpublic void setUsername(String username)
JiraService
setUsername in interface JiraServiceusername - the username as a Stringpublic void setPassword(String password)
JiraService
setPassword in interface JiraServicepassword - Stringpublic void setProjectKey(String projectKey)
JiraService
setProjectKey in interface JiraServiceprojectKey - String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||