Search in sources :

Example 6 with OSIORestConfiguration

use of org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConfiguration in project linuxtools by eclipse.

the class TestOSIORestGetTaskData method testGetTaskData.

@Test
public void testGetTaskData() throws Exception {
    TestData testData = new TestData();
    TestUtils.initSpaces(requestProvider, testData);
    OSIORestClient client = connector.getClient(repository, requestProvider);
    OSIORestConfiguration config = client.getConfiguration(repository, new NullOperationMonitor());
    config.setSpaces(testData.spaceMap);
    connector.setConfiguration(config);
    RepositoryLocation location = client.getClient().getLocation();
    location.setProperty(IOSIORestConstants.REPOSITORY_AUTH_ID, "user");
    location.setProperty(IOSIORestConstants.REPOSITORY_AUTH_TOKEN, "xxxxxxTokenxxxxxx");
    OSIORestGetTaskData data = new OSIORestGetTaskData(client.getClient(), connector, "/workitems/QUERY", repository);
    String bundleLocation = Activator.getContext().getBundle().getLocation();
    int index = bundleLocation.indexOf('/');
    String fileName = bundleLocation.substring(index) + "/testjson/workitems.data";
    FileReader in = new FileReader(fileName);
    List<TaskData> taskDataList = data.testParseFromJson(in);
    assertEquals(2, taskDataList.size());
    TaskData taskData = taskDataList.get(0);
    TaskAttribute root = taskData.getRoot();
    OSIORestTaskSchema schema = OSIORestTaskSchema.getDefault();
    TaskAttribute space = root.getAttribute(schema.SPACE.getKey());
    assertEquals("mywork", space.getValue());
    TaskAttribute spaceid = root.getAttribute(schema.SPACE_ID.getKey());
    assertEquals("SPACE-0001", spaceid.getValue());
    TaskAttribute uuid = root.getAttribute(schema.UUID.getKey());
    assertEquals("WORKITEM-0001", uuid.getValue());
    TaskAttribute labelsLink = root.getAttribute(schema.LABELS_LINK.getKey());
    assertEquals("https://openshift.io/api/workitems/WORKITEM-0001/labels", labelsLink.getValue());
    TaskAttribute creatorId = root.getAttribute(schema.CREATOR_ID.getKey());
    assertEquals("USER-0001", creatorId.getValue());
    TaskAttribute taskUrl = root.getAttribute(schema.TASK_URL.getKey());
    assertEquals("https://openshift.io/api/workitems/WORKITEM-0001", taskUrl.getValue());
    TaskAttribute assigneeIds = root.getAttribute(schema.ASSIGNEE_IDS.getKey());
    assertEquals("USER-0001", assigneeIds.getValue());
    TaskAttribute id = root.getAttribute(schema.ID.getKey());
    assertEquals("user/mywork#1", id.getValue());
    TaskAttribute status = root.getAttribute(schema.STATUS.getKey());
    assertEquals("resolved", status.getValue());
    TaskAttribute title = root.getAttribute(schema.SUMMARY.getKey());
    assertEquals("00001", title.getValue());
    TaskAttribute description = root.getAttribute(schema.DESCRIPTION.getKey());
    assertEquals("Test bug", description.getValue());
    TaskAttribute version = root.getAttribute(schema.VERSION.getKey());
    assertEquals("11", version.getValue());
    TaskAttribute order = root.getAttribute(schema.ORDER.getKey());
    assertEquals("1000", order.getValue());
    TaskAttribute created_at = root.getAttribute(schema.DATE_CREATION.getKey());
    assertEquals(getDate("2017-08-14T21:37:15.863435Z"), created_at.getValue());
    TaskAttribute updated_at = root.getAttribute(schema.DATE_MODIFICATION.getKey());
    assertEquals(getDate("2017-09-15T15:54:43.08915Z"), updated_at.getValue());
    taskData = taskDataList.get(1);
    root = taskData.getRoot();
    space = root.getAttribute(schema.SPACE.getKey());
    assertEquals("mywork", space.getValue());
    spaceid = root.getAttribute(schema.SPACE_ID.getKey());
    assertEquals("SPACE-0001", spaceid.getValue());
    uuid = root.getAttribute(schema.UUID.getKey());
    assertEquals("WORKITEM-0002", uuid.getValue());
    labelsLink = root.getAttribute(schema.LABELS_LINK.getKey());
    assertEquals("https://openshift.io/api/workitems/WORKITEM-0002/labels", labelsLink.getValue());
    creatorId = root.getAttribute(schema.CREATOR_ID.getKey());
    assertEquals("USER-0001", creatorId.getValue());
    taskUrl = root.getAttribute(schema.TASK_URL.getKey());
    assertEquals("https://openshift.io/api/workitems/WORKITEM-0002", taskUrl.getValue());
    assigneeIds = root.getAttribute(schema.ASSIGNEE_IDS.getKey());
    assertEquals("USER-0001", assigneeIds.getValue());
    id = root.getAttribute(schema.ID.getKey());
    assertEquals("user/mywork#2", id.getValue());
    status = root.getAttribute(schema.STATUS.getKey());
    assertEquals("open", status.getValue());
    title = root.getAttribute(schema.SUMMARY.getKey());
    assertEquals("00002", title.getValue());
    description = root.getAttribute(schema.DESCRIPTION.getKey());
    assertEquals("Test feature", description.getValue());
    version = root.getAttribute(schema.VERSION.getKey());
    assertEquals("22", version.getValue());
    order = root.getAttribute(schema.ORDER.getKey());
    assertEquals("2000", order.getValue());
    created_at = root.getAttribute(schema.DATE_CREATION.getKey());
    assertEquals(getDate("2017-08-15T21:37:15.863435Z"), created_at.getValue());
    updated_at = root.getAttribute(schema.DATE_MODIFICATION.getKey());
    assertEquals(getDate("2017-09-16T15:54:43.08915Z"), updated_at.getValue());
}
Also used : TaskAttribute(org.eclipse.mylyn.tasks.core.data.TaskAttribute) TestData(org.eclipse.linuxtools.mylyn.osio.rest.test.support.TestData) OSIORestGetTaskData(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestGetTaskData) OSIORestConfiguration(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConfiguration) RepositoryLocation(org.eclipse.mylyn.commons.repositories.core.RepositoryLocation) TaskData(org.eclipse.mylyn.tasks.core.data.TaskData) OSIORestGetTaskData(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestGetTaskData) OSIORestClient(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestClient) FileReader(java.io.FileReader) OSIORestTaskSchema(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestTaskSchema) NullOperationMonitor(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.NullOperationMonitor) Test(org.junit.Test)

Example 7 with OSIORestConfiguration

use of org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConfiguration in project linuxtools by eclipse.

the class TestOSIORestGetTaskLinks method testGetTaskLinks.

@Test
public void testGetTaskLinks() throws Exception {
    TestData testData = new TestData();
    TestUtils.initSpaces(requestProvider, testData);
    OSIORestClient client = connector.getClient(repository, requestProvider);
    AbstractTaskDataHandler taskDataHandler = connector.getTaskDataHandler();
    TaskAttributeMapper mapper = taskDataHandler.getAttributeMapper(repository);
    TaskData taskData = new TaskData(mapper, repository.getConnectorKind(), repository.getRepositoryUrl(), "");
    OSIORestTaskSchema.getDefault().initialize(taskData);
    OSIORestConfiguration config = client.getConfiguration(repository, new NullOperationMonitor());
    config.setSpaces(testData.spaceMap);
    connector.setConfiguration(config);
    RepositoryLocation location = client.getClient().getLocation();
    location.setProperty(IOSIORestConstants.REPOSITORY_AUTH_ID, "user");
    location.setProperty(IOSIORestConstants.REPOSITORY_AUTH_TOKEN, "xxxxxxTokenxxxxxx");
    WorkItem workitem = initWorkItem("1", "WORKITEM-0001", "SPACE-0001", "Task 1");
    WorkItem workitem2 = initWorkItem("2", "WORKITEM-0002", "SPACE-0001", "Task 2");
    WorkItem workitem3 = initWorkItem("3", "WORKITEM-0003", "SPACE-0001", "Task 3");
    requestProvider.addGetRequest("/workitems/WORKITEM-0001", workitem);
    requestProvider.addGetRequest("/workitems/WORKITEM-0002", workitem2);
    requestProvider.addGetRequest("/workitems/WORKITEM-0003", workitem3);
    taskData.getRoot().getAttribute(OSIORestTaskSchema.getDefault().UUID.getKey()).setValue("WORKITEM-0001");
    OSIORestGetTaskLinks data = new OSIORestGetTaskLinks(client.getClient(), client, testData.spaceMap.get("mywork"), taskData, config);
    String bundleLocation = Activator.getContext().getBundle().getLocation();
    int index = bundleLocation.indexOf('/');
    String fileName = bundleLocation.substring(index) + "/testjson/links.data";
    FileReader in = new FileReader(fileName);
    TaskAttribute original = taskData.getRoot().getAttribute(OSIORestTaskSchema.getDefault().LINKS.getKey());
    assertTrue(original == null || original.getValues().isEmpty());
    TaskAttribute attribute = data.testParseFromJson(in);
    assertEquals(2, attribute.getValues().size());
    List<String> values = attribute.getValues();
    assertEquals("blocks Task 2 [user/mywork#2]", values.get(0));
    assertEquals("is blocked by Task 3 [user/mywork#3]", values.get(1));
}
Also used : TaskAttribute(org.eclipse.mylyn.tasks.core.data.TaskAttribute) TestData(org.eclipse.linuxtools.mylyn.osio.rest.test.support.TestData) OSIORestConfiguration(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConfiguration) AbstractTaskDataHandler(org.eclipse.mylyn.tasks.core.data.AbstractTaskDataHandler) WorkItem(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.response.data.WorkItem) RepositoryLocation(org.eclipse.mylyn.commons.repositories.core.RepositoryLocation) TaskData(org.eclipse.mylyn.tasks.core.data.TaskData) OSIORestGetTaskLinks(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestGetTaskLinks) OSIORestClient(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestClient) FileReader(java.io.FileReader) TaskAttributeMapper(org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper) NullOperationMonitor(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.NullOperationMonitor) Test(org.junit.Test)

Example 8 with OSIORestConfiguration

use of org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConfiguration in project linuxtools by eclipse.

the class TestOSIORestPatchUpdateTask method testPatchUpdateTask.

@Test
public void testPatchUpdateTask() throws Exception {
    TestData testData = new TestData();
    TestUtils.initSpaces(requestProvider, testData);
    OSIORestClient client = connector.getClient(repository, requestProvider);
    OSIORestConfiguration config = client.getConfiguration(repository, new NullOperationMonitor());
    config.setSpaces(testData.spaceMap);
    connector.setConfiguration(config);
    RepositoryLocation location = client.getClient().getLocation();
    location.setProperty(IOSIORestConstants.REPOSITORY_AUTH_ID, "user");
    location.setProperty(IOSIORestConstants.REPOSITORY_AUTH_TOKEN, "xxxxxxTokenxxxxxx");
    AbstractTaskDataHandler taskDataHandler = connector.getTaskDataHandler();
    TaskAttributeMapper mapper = taskDataHandler.getAttributeMapper(repository);
    TaskData taskData = new TaskData(mapper, repository.getConnectorKind(), repository.getRepositoryUrl(), "");
    OSIORestTaskSchema.getDefault().initialize(taskData);
    Set<TaskAttribute> attributes = new LinkedHashSet<>();
    TaskAttribute newComment = taskData.getRoot().getAttribute(OSIORestTaskSchema.getDefault().NEW_COMMENT.getKey());
    newComment.setValue("This is a test comment");
    attributes.add(newComment);
    OSIORestTaskSchema taskSchema = OSIORestTaskSchema.getDefault();
    TaskAttribute root = taskData.getRoot();
    TaskAttribute description = root.getAttribute(taskSchema.DESCRIPTION.getKey());
    description.setValue("This is a test bug");
    TaskAttribute operation = root.createAttribute(TaskAttribute.OPERATION);
    operation.setValue("in progress");
    TaskAttribute status = root.getAttribute(taskSchema.STATUS.getKey());
    status.setValue("open");
    TaskAttribute uuid = root.getAttribute(taskSchema.UUID.getKey());
    uuid.setValue("WORKITEM-0001");
    TaskAttribute summary = root.getAttribute(taskSchema.SUMMARY.getKey());
    summary.setValue("Bug0001");
    TaskAttribute version = root.getAttribute(taskSchema.VERSION.getKey());
    version.setValue("11");
    TaskAttribute area = root.getAttribute(taskSchema.AREA.getKey());
    area.setValue("mywork");
    TaskAttribute iteration = root.getAttribute(taskSchema.ITERATION.getKey());
    iteration.setValue("mywork");
    TaskAttribute labels = root.getAttribute(taskSchema.LABELS.getKey());
    labels.addValue("label1");
    labels.addValue("label3");
    TaskAttribute addLabels = root.getAttribute(taskSchema.ADD_LABEL.getKey());
    addLabels.addValue("label2");
    TaskAttribute removeLabels = root.getAttribute(taskSchema.REMOVE_LABEL.getKey());
    removeLabels.addValue("label3");
    TaskAttribute assignees = root.getAttribute(taskSchema.ASSIGNEES.getKey());
    assignees.addValue("user3");
    TaskAttribute addAssignees = root.getAttribute(taskSchema.ADD_ASSIGNEE.getKey());
    addAssignees.addValue("user");
    TaskAttribute removeAssignees = root.getAttribute(taskSchema.REMOVE_ASSIGNEE.getKey());
    removeAssignees.addValue("user3");
    OSIORestPatchUpdateTask data = new OSIORestPatchUpdateTask(client.getClient(), taskData, attributes, testData.spaceMap.get("mywork"));
    OSIORestPatchUpdateTask.TaskAttributeTypeAdapter adapter = data.new TaskAttributeTypeAdapter(location);
    OSIORestPatchUpdateTask.OldAttributes oldAttributes = data.new OldAttributes(attributes);
    StringWriter s = new StringWriter();
    JsonWriter writer = new JsonWriter(s);
    adapter.write(writer, oldAttributes);
    assertEquals("{\"data\":{\"attributes\":{\"system.description\":\"This is a test bug\",\"system.state\":\"in progress\",\"system.title\":\"Bug0001\",\"version\":\"11\"}," + "\"id\":\"WORKITEM-0001\",\"relationships\":{\"space\":{\"data\":{\"id\":\"SPACE-0001\",\"type\":\"spaces\"}},\"area\":{\"data\":{\"id\":\"AREA-0001\",\"type\":\"areas\"}}," + "\"iteration\":{\"data\":{\"id\":\"ITERATION-0001\",\"type\":\"iterations\"}},\"assignees\":{\"data\":[{\"id\":\"USER-0001\",\"type\":\"users\"}]}," + "\"labels\":{\"data\":[{\"id\":\"LABEL-0001\",\"type\":\"labels\"},{\"id\":\"LABEL-0002\",\"type\":\"labels\"}]}},\"type\":\"workitems\"},\"included\":[true]}", s.getBuffer().toString());
    StringWriter s2 = new StringWriter();
    JsonWriter writer2 = new JsonWriter(s2);
    root.removeAttribute(TaskAttribute.OPERATION);
    adapter.write(writer2, oldAttributes);
    assertEquals("{\"data\":{\"attributes\":{\"system.description\":\"This is a test bug\",\"system.state\":\"open\",\"system.title\":\"Bug0001\",\"version\":\"11\"}," + "\"id\":\"WORKITEM-0001\",\"relationships\":{\"space\":{\"data\":{\"id\":\"SPACE-0001\",\"type\":\"spaces\"}},\"area\":{\"data\":{\"id\":\"AREA-0001\",\"type\":\"areas\"}}," + "\"iteration\":{\"data\":{\"id\":\"ITERATION-0001\",\"type\":\"iterations\"}},\"assignees\":{\"data\":[{\"id\":\"USER-0001\",\"type\":\"users\"}]}," + "\"labels\":{\"data\":[{\"id\":\"LABEL-0001\",\"type\":\"labels\"},{\"id\":\"LABEL-0002\",\"type\":\"labels\"}]}},\"type\":\"workitems\"},\"included\":[true]}", s2.getBuffer().toString());
}
Also used : LinkedHashSet(java.util.LinkedHashSet) TaskAttribute(org.eclipse.mylyn.tasks.core.data.TaskAttribute) TestData(org.eclipse.linuxtools.mylyn.osio.rest.test.support.TestData) OSIORestConfiguration(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConfiguration) AbstractTaskDataHandler(org.eclipse.mylyn.tasks.core.data.AbstractTaskDataHandler) JsonWriter(com.google.gson.stream.JsonWriter) RepositoryLocation(org.eclipse.mylyn.commons.repositories.core.RepositoryLocation) TaskData(org.eclipse.mylyn.tasks.core.data.TaskData) StringWriter(java.io.StringWriter) OSIORestClient(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestClient) OSIORestTaskSchema(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestTaskSchema) TaskAttributeMapper(org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper) OSIORestPatchUpdateTask(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestPatchUpdateTask) NullOperationMonitor(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.NullOperationMonitor) Test(org.junit.Test)

Example 9 with OSIORestConfiguration

use of org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConfiguration in project linuxtools by eclipse.

the class TestOSIORestPostNewLink method testPostNewLink.

@Test
public void testPostNewLink() throws Exception {
    TestData testData = new TestData();
    TestUtils.initSpaces(requestProvider, testData);
    OSIORestClient client = connector.getClient(repository, requestProvider);
    OSIORestConfiguration config = client.getConfiguration(repository, new NullOperationMonitor());
    config.setSpaces(testData.spaceMap);
    connector.setConfiguration(config);
    RepositoryLocation location = client.getClient().getLocation();
    location.setProperty(IOSIORestConstants.REPOSITORY_AUTH_ID, "user");
    location.setProperty(IOSIORestConstants.REPOSITORY_AUTH_TOKEN, "xxxxxxTokenxxxxxx");
    AbstractTaskDataHandler taskDataHandler = connector.getTaskDataHandler();
    TaskAttributeMapper mapper = taskDataHandler.getAttributeMapper(repository);
    TaskData taskData = new TaskData(mapper, repository.getConnectorKind(), repository.getRepositoryUrl(), "");
    OSIORestTaskSchema.getDefault().initialize(taskData);
    OSIORestPostNewLink data = new OSIORestPostNewLink(client.getClient(), "LINKTYPE-0001", "WORKITEM-0001", "WORKITEM-0002", false);
    OSIORestPostNewLink.TaskAttributeTypeAdapter adapter = data.new TaskAttributeTypeAdapter();
    StringWriter s = new StringWriter();
    JsonWriter writer = new JsonWriter(s);
    adapter.write(writer, "");
    assertEquals("{\"data\":{\"relationships\":{\"link_type\":{\"data\":{\"id\":\"LINKTYPE-0001\",\"type\":\"workitemlinktypes\"}}," + "\"source\":{\"data\":{\"id\":\"WORKITEM-0002\",\"type\":\"workitems\"}},\"target\":{\"data\":{\"id\":\"WORKITEM-0001\",\"type\":\"workitems\"}}}," + "\"type\":\"workitemlinks\"},\"included\":[false,false,false]}", s.toString());
}
Also used : OSIORestPostNewLink(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestPostNewLink) TestData(org.eclipse.linuxtools.mylyn.osio.rest.test.support.TestData) OSIORestConfiguration(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConfiguration) AbstractTaskDataHandler(org.eclipse.mylyn.tasks.core.data.AbstractTaskDataHandler) JsonWriter(com.google.gson.stream.JsonWriter) RepositoryLocation(org.eclipse.mylyn.commons.repositories.core.RepositoryLocation) TaskData(org.eclipse.mylyn.tasks.core.data.TaskData) StringWriter(java.io.StringWriter) OSIORestClient(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestClient) TaskAttributeMapper(org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper) NullOperationMonitor(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.NullOperationMonitor) Test(org.junit.Test)

Example 10 with OSIORestConfiguration

use of org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConfiguration in project linuxtools by eclipse.

the class TestOSIORestPostNewTask method testPostNewTask.

@Test
public void testPostNewTask() throws Exception {
    TestData testData = new TestData();
    TestUtils.initSpaces(requestProvider, testData);
    OSIORestClient client = connector.getClient(repository, requestProvider);
    OSIORestConfiguration config = client.getConfiguration(repository, new NullOperationMonitor());
    config.setSpaces(testData.spaceMap);
    connector.setConfiguration(config);
    RepositoryLocation location = client.getClient().getLocation();
    location.setProperty(IOSIORestConstants.REPOSITORY_AUTH_ID, "user");
    location.setProperty(IOSIORestConstants.REPOSITORY_AUTH_TOKEN, "xxxxxxTokenxxxxxx");
    AbstractTaskDataHandler taskDataHandler = connector.getTaskDataHandler();
    TaskAttributeMapper mapper = taskDataHandler.getAttributeMapper(repository);
    TaskData taskData = new TaskData(mapper, repository.getConnectorKind(), repository.getRepositoryUrl(), "");
    OSIORestTaskSchema.getDefault().initialize(taskData);
    TaskAttribute root = taskData.getRoot();
    OSIORestTaskSchema taskSchema = OSIORestTaskSchema.getDefault();
    TaskAttribute summary = root.getAttribute(taskSchema.SUMMARY.getKey());
    summary.setValue("Bug0001");
    TaskAttribute description = root.getAttribute(taskSchema.DESCRIPTION.getKey());
    description.setValue("This is a bug");
    TaskAttribute workitemtype = root.getAttribute(taskSchema.WORKITEM_TYPE.getKey());
    workitemtype.setValue("bug");
    OSIORestPostNewTask data = new OSIORestPostNewTask(client.getClient(), taskData, testData.spaceMap.get("mywork"), connector, repository);
    OSIORestPostNewTask.TaskAttributeTypeAdapter adapter = data.new TaskAttributeTypeAdapter(location);
    StringWriter s = new StringWriter();
    JsonWriter writer = new JsonWriter(s);
    adapter.write(writer, taskData);
    assertEquals("{\"data\":{\"attributes\":{\"system.state\":\"new\",\"system.title\":\"Bug0001\",\"version\":\"1\",\"system.description\":\"This is a bug\"},\"relationships\":{\"baseType\":{\"data\":{\"id\":\"WORKITEMTYPE-0001\",\"type\":\"workitemtypes\"}},\"space\":{\"data\":{\"id\":\"SPACE-0001\",\"type\":\"spaces\"}}},\"type\":\"workitems\"},\"included\":[true]}", s.toString());
}
Also used : TaskAttribute(org.eclipse.mylyn.tasks.core.data.TaskAttribute) TestData(org.eclipse.linuxtools.mylyn.osio.rest.test.support.TestData) OSIORestPostNewTask(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestPostNewTask) OSIORestConfiguration(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConfiguration) AbstractTaskDataHandler(org.eclipse.mylyn.tasks.core.data.AbstractTaskDataHandler) JsonWriter(com.google.gson.stream.JsonWriter) RepositoryLocation(org.eclipse.mylyn.commons.repositories.core.RepositoryLocation) TaskData(org.eclipse.mylyn.tasks.core.data.TaskData) StringWriter(java.io.StringWriter) OSIORestClient(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestClient) OSIORestTaskSchema(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestTaskSchema) TaskAttributeMapper(org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper) NullOperationMonitor(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.NullOperationMonitor) Test(org.junit.Test)

Aggregations

OSIORestConfiguration (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConfiguration)21 OSIORestClient (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestClient)19 TestData (org.eclipse.linuxtools.mylyn.osio.rest.test.support.TestData)19 RepositoryLocation (org.eclipse.mylyn.commons.repositories.core.RepositoryLocation)19 Test (org.junit.Test)19 NullOperationMonitor (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.NullOperationMonitor)15 TaskData (org.eclipse.mylyn.tasks.core.data.TaskData)13 AbstractTaskDataHandler (org.eclipse.mylyn.tasks.core.data.AbstractTaskDataHandler)11 TaskAttributeMapper (org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper)11 FileReader (java.io.FileReader)10 TaskAttribute (org.eclipse.mylyn.tasks.core.data.TaskAttribute)10 JsonWriter (com.google.gson.stream.JsonWriter)5 StringWriter (java.io.StringWriter)5 OSIORestTaskSchema (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestTaskSchema)4 Space (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.response.data.Space)3 NullOperationMonitor (org.eclipse.mylyn.internal.commons.core.operations.NullOperationMonitor)3 LinkedHashSet (java.util.LinkedHashSet)2 CoreException (org.eclipse.core.runtime.CoreException)2 Identity (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.response.data.Identity)2 WorkItem (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.response.data.WorkItem)2