use of org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider in project linuxtools by eclipse.
the class TestOSIORestGetUser 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();
}
use of org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider in project linuxtools by eclipse.
the class TestOSIORestPatchUpdateTask 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();
}
use of org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider in project linuxtools by eclipse.
the class TestOSIORestPostNewLabel 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();
}
use of org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider 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"));
}
use of org.eclipse.linuxtools.mylyn.osio.rest.test.support.OSIOTestRestRequestProvider 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();
}
Aggregations