Search in sources :

Example 11 with TaskRepository

use of org.eclipse.mylyn.tasks.core.TaskRepository in project linuxtools by eclipse.

the class TestOSIORestClient method setUp.

@SuppressWarnings("deprecation")
@Before
public void setUp() {
    connector = new OSIORestConnector();
    repository = new TaskRepository(connector.getConnectorKind(), "http://openshift.io/api");
    repository.setProperty(IOSIORestConstants.REPOSITORY_AUTH_ID, "user");
    repository.setProperty(IOSIORestConstants.REPOSITORY_AUTH_TOKEN, "xxxxxxTokenxxxxxx");
    requestProvider = new OSIOTestRestRequestProvider();
    requestProvider.addGetRequest("/user", new Identity("user", "user", new Date(2017, 01, 01), new Date(2017, 01, 01), "User", "//image/user", "user", Boolean.TRUE, "user@user.org", "userCo", "", "//users/user", "TestUser"));
}
Also used : OSIOTestRestRequestProvider(org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider) TaskRepository(org.eclipse.mylyn.tasks.core.TaskRepository) OSIORestConnector(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConnector) Identity(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.response.data.Identity) Date(java.sql.Date) Before(org.junit.Before)

Example 12 with TaskRepository

use of org.eclipse.mylyn.tasks.core.TaskRepository in project linuxtools by eclipse.

the class TestOSIORestGetAuthUser method setUp.

@Before
public void setUp() {
    connector = new TestOSIORestConnector();
    repository = new TaskRepository(connector.getConnectorKind(), "http://openshift.io/api");
    repository.setProperty(IOSIORestConstants.REPOSITORY_AUTH_ID, "user");
    repository.setProperty(IOSIORestConstants.REPOSITORY_AUTH_TOKEN, "xxxxxxTokenxxxxxx");
    requestProvider = new OSIOTestRestRequestProvider();
}
Also used : OSIOTestRestRequestProvider(org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider) TaskRepository(org.eclipse.mylyn.tasks.core.TaskRepository) Before(org.junit.Before)

Example 13 with TaskRepository

use of org.eclipse.mylyn.tasks.core.TaskRepository in project linuxtools by eclipse.

the class TestOSIORestGetTaskAssignee method setUp.

@Before
public void setUp() {
    connector = new TestOSIORestConnector();
    repository = new TaskRepository(connector.getConnectorKind(), "http://openshift.io/api");
    repository.setProperty(IOSIORestConstants.REPOSITORY_AUTH_ID, "user");
    repository.setProperty(IOSIORestConstants.REPOSITORY_AUTH_TOKEN, "xxxxxxTokenxxxxxx");
    requestProvider = new OSIOTestRestRequestProvider();
}
Also used : OSIOTestRestRequestProvider(org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider) TaskRepository(org.eclipse.mylyn.tasks.core.TaskRepository) Before(org.junit.Before)

Example 14 with TaskRepository

use of org.eclipse.mylyn.tasks.core.TaskRepository in project linuxtools by eclipse.

the class TestOSIORestGetTaskCreator method setUp.

@Before
public void setUp() {
    connector = new TestOSIORestConnector();
    repository = new TaskRepository(connector.getConnectorKind(), "http://openshift.io/api");
    repository.setProperty(IOSIORestConstants.REPOSITORY_AUTH_ID, "user");
    repository.setProperty(IOSIORestConstants.REPOSITORY_AUTH_TOKEN, "xxxxxxTokenxxxxxx");
    requestProvider = new OSIOTestRestRequestProvider();
}
Also used : OSIOTestRestRequestProvider(org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider) TaskRepository(org.eclipse.mylyn.tasks.core.TaskRepository) Before(org.junit.Before)

Example 15 with TaskRepository

use of org.eclipse.mylyn.tasks.core.TaskRepository in project linuxtools by eclipse.

the class TestOSIORestGetWorkItem method setUp.

@Before
public void setUp() {
    connector = new TestOSIORestConnector();
    repository = new TaskRepository(connector.getConnectorKind(), "http://openshift.io/api");
    repository.setProperty(IOSIORestConstants.REPOSITORY_AUTH_ID, "user");
    repository.setProperty(IOSIORestConstants.REPOSITORY_AUTH_TOKEN, "xxxxxxTokenxxxxxx");
    requestProvider = new OSIOTestRestRequestProvider();
}
Also used : OSIOTestRestRequestProvider(org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider) TaskRepository(org.eclipse.mylyn.tasks.core.TaskRepository) Before(org.junit.Before)

Aggregations

TaskRepository (org.eclipse.mylyn.tasks.core.TaskRepository)18 OSIOTestRestRequestProvider (org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider)16 Before (org.junit.Before)16 Date (java.sql.Date)1 OSIORestConnector (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConnector)1 Identity (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.response.data.Identity)1 AuthenticationCredentials (org.eclipse.mylyn.commons.net.AuthenticationCredentials)1 UserCredentials (org.eclipse.mylyn.commons.repositories.core.auth.UserCredentials)1 SectionComposite (org.eclipse.mylyn.commons.workbench.forms.SectionComposite)1 TaskTask (org.eclipse.mylyn.internal.tasks.core.TaskTask)1 ITask (org.eclipse.mylyn.tasks.core.ITask)1 ITaskDataWorkingCopy (org.eclipse.mylyn.tasks.core.data.ITaskDataWorkingCopy)1 TaskAttribute (org.eclipse.mylyn.tasks.core.data.TaskAttribute)1 TaskDataModel (org.eclipse.mylyn.tasks.core.data.TaskDataModel)1 TaskDataModelEvent (org.eclipse.mylyn.tasks.core.data.TaskDataModelEvent)1 TaskDataModelListener (org.eclipse.mylyn.tasks.core.data.TaskDataModelListener)1 Point (org.eclipse.swt.graphics.Point)1 GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 Composite (org.eclipse.swt.widgets.Composite)1