Search in sources :

Example 11 with OSIOTestRestRequestProvider

use of org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider 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 12 with OSIOTestRestRequestProvider

use of org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider 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 13 with OSIOTestRestRequestProvider

use of org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider 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)

Example 14 with OSIOTestRestRequestProvider

use of org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider in project linuxtools by eclipse.

the class TestOSIORestPostNewComment 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 OSIOTestRestRequestProvider

use of org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider in project linuxtools by eclipse.

the class TestOSIORestPostNewLink 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

OSIOTestRestRequestProvider (org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider)16 TaskRepository (org.eclipse.mylyn.tasks.core.TaskRepository)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