Search in sources :

Example 1 with TaskBuilder

use of com.intellij.tasks.TaskTestUtil.TaskBuilder in project intellij-community by JetBrains.

the class SprintlyIntegrationTest method testParsingSingleTask.

public void testParsingSingleTask() throws Exception {
    Task task = myRepository.getActiveResponseHandler().parseIssue(SINGLE_TASK_RESPONSE);
    assertTasksEqual(new TaskBuilder("1", "Nasty Bug!", myRepository).withDescription("This is this horrible bug's description").withIssueUrl("http://sprint.ly/i/14182/1/").withUpdated("2013-09-04 13:53:14").withCreated("2013-09-03 16:10:43"), task);
}
Also used : TaskBuilder(com.intellij.tasks.TaskTestUtil.TaskBuilder) Task(com.intellij.tasks.Task)

Example 2 with TaskBuilder

use of com.intellij.tasks.TaskTestUtil.TaskBuilder in project intellij-community by JetBrains.

the class AsanaIntegrationTest method testParsingSingleTask.

public void testParsingSingleTask() throws Exception {
    Task task = myRepository.getActiveResponseHandler().parseIssue(SINGLE_TASK_RESPONSE);
    assertNotNull(task);
    assertTasksEqual(new TaskBuilder("7119324862208", "Task #2", myRepository).withDescription("This is task #2 description").withClosed(true).withCreated("2013-08-02T12:13:20.372Z").withUpdated("2013-08-21T16:36:36.290Z"), task);
}
Also used : TaskBuilder(com.intellij.tasks.TaskTestUtil.TaskBuilder) GenericTask(com.intellij.tasks.generic.GenericTask) Task(com.intellij.tasks.Task)

Example 3 with TaskBuilder

use of com.intellij.tasks.TaskTestUtil.TaskBuilder in project intellij-community by JetBrains.

the class SprintlyIntegrationTest method testParsingTaskList.

public void testParsingTaskList() throws Exception {
    Task[] tasks = myRepository.getActiveResponseHandler().parseIssues(TASK_LIST_RESPONSE, 50);
    assertTasksEqual(new Task[] { new TaskBuilder("1", "Nasty Bug!", myRepository).withDescription("These SEGFAULTs oppress me").withIssueUrl("http://sprint.ly/i/14182/1/").withUpdated("2013-09-03 16:12:51").withCreated("2013-09-03 16:10:43"), new TaskBuilder("2", "Some task", myRepository).withDescription("Finish Sprint.ly connector").withIssueUrl("http://sprint.ly/i/14182/2/").withUpdated("2013-09-04 10:18:02").withCreated("2013-09-03 16:13:54") }, tasks);
}
Also used : TaskBuilder(com.intellij.tasks.TaskTestUtil.TaskBuilder) Task(com.intellij.tasks.Task)

Aggregations

Task (com.intellij.tasks.Task)3 TaskBuilder (com.intellij.tasks.TaskTestUtil.TaskBuilder)3 GenericTask (com.intellij.tasks.generic.GenericTask)1