Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-08-12 19:03:22 +0000
committerfbecker2010-08-12 19:03:22 +0000
commitf764c737fbace31c9f8d0a01ba9e8298ecaa186a (patch)
tree9e786803ec7fe4b0fdeb1995b072537194ebfeaa /org.eclipse.mylyn.bugzilla.tests
parentea46e03be3f0fb86adce4f035cbebe1149d3fda5 (diff)
downloadorg.eclipse.mylyn.tasks-f764c737fbace31c9f8d0a01ba9e8298ecaa186a.tar.gz
org.eclipse.mylyn.tasks-f764c737fbace31c9f8d0a01ba9e8298ecaa186a.tar.xz
org.eclipse.mylyn.tasks-f764c737fbace31c9f8d0a01ba9e8298ecaa186a.zip
ASSIGNED - bug 282211: [patch] create Webservice API
https://bugs.eclipse.org/bugs/show_bug.cgi?id=282211
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaXmlRpcClientTest.java40
1 files changed, 22 insertions, 18 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaXmlRpcClientTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaXmlRpcClientTest.java
index a3ecbbd52..2ca2730ce 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaXmlRpcClientTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaXmlRpcClientTest.java
@@ -18,6 +18,8 @@ import java.util.HashMap;
import junit.framework.TestCase;
import org.apache.xmlrpc.XmlRpcException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.mylyn.bugzilla.tests.support.BugzillaFixture;
import org.eclipse.mylyn.commons.net.AuthenticationType;
import org.eclipse.mylyn.commons.net.WebLocation;
@@ -45,38 +47,40 @@ public class BugzillaXmlRpcClientTest extends TestCase {
@SuppressWarnings("unused")
public void testXmlRpc() throws Exception {
if (BugzillaFixture.current() != BugzillaFixture.BUGS_3_6_XML_RPC_DISABLED) {
- int uID = bugzillaClient.login();
- String x0 = bugzillaClient.getVersion();
- HashMap<?, ?> x1 = bugzillaClient.getTime();
- Date x2 = bugzillaClient.getDBTime();
- Date x3 = bugzillaClient.getWebTime();
- Object[] xx0 = bugzillaClient.getUserInfoFromIDs(new Integer[] { 1, 2 });
- Object[] xx1 = bugzillaClient.getUserInfoFromNames(new String[] { "tests@mylyn.eclipse.org" });
- Object[] xx2 = bugzillaClient.getUserInfoWithMatch(new String[] { "est" });
- Object[] xx3 = bugzillaClient.getAllFields();
- Object[] xx4 = bugzillaClient.getFieldsWithNames(new String[] { "qa_contact" });
- Object[] xx5 = bugzillaClient.getFieldsWithIDs(new Integer[] { 12, 18 });
- Object[] xx6 = bugzillaClient.getSelectableProducts();
- Object[] xx7 = bugzillaClient.getEnterableProducts();
- Object[] xx8 = bugzillaClient.getAccessibleProducts();
- Object[] xx9 = bugzillaClient.getProducts(new Integer[] { 1, 3 });
+ IProgressMonitor monitor = new NullProgressMonitor();
+ int uID = bugzillaClient.login(monitor);
+ String x0 = bugzillaClient.getVersion(monitor);
+ HashMap<?, ?> x1 = bugzillaClient.getTime(monitor);
+ Date x2 = bugzillaClient.getDBTime(monitor);
+ Date x3 = bugzillaClient.getWebTime(monitor);
+ Object[] xx0 = bugzillaClient.getUserInfoFromIDs(monitor, new Integer[] { 1, 2 });
+ Object[] xx1 = bugzillaClient.getUserInfoFromNames(monitor, new String[] { "tests@mylyn.eclipse.org" });
+ Object[] xx2 = bugzillaClient.getUserInfoWithMatch(monitor, new String[] { "est" });
+ Object[] xx3 = bugzillaClient.getAllFields(monitor);
+ Object[] xx4 = bugzillaClient.getFieldsWithNames(monitor, new String[] { "qa_contact" });
+ Object[] xx5 = bugzillaClient.getFieldsWithIDs(monitor, new Integer[] { 12, 18 });
+ Object[] xx6 = bugzillaClient.getSelectableProducts(monitor);
+ Object[] xx7 = bugzillaClient.getEnterableProducts(monitor);
+ Object[] xx8 = bugzillaClient.getAccessibleProducts(monitor);
+ Object[] xx9 = bugzillaClient.getProducts(monitor, new Integer[] { 1, 3 });
}
}
@SuppressWarnings("unused")
public void testXmlRpcInstalled() throws Exception {
int uID = -1;
+ IProgressMonitor monitor = new NullProgressMonitor();
BugzillaFixture a = BugzillaFixture.current();
if (BugzillaFixture.current() == BugzillaFixture.BUGS_3_6_XML_RPC_DISABLED) {
try {
- uID = bugzillaClient.login();
+ uID = bugzillaClient.login(monitor);
fail("Never reach this! We should get an XmlRpcException");
} catch (XmlRpcException e) {
assertEquals("The server returned an unexpected content type: 'text/html; charset=UTF-8'",
e.getMessage());
}
} else {
- uID = bugzillaClient.login();
+ uID = bugzillaClient.login(monitor);
assertEquals(2, uID);
}
}
@@ -84,7 +88,7 @@ public class BugzillaXmlRpcClientTest extends TestCase {
public void testTransitionManagerWithXml() throws Exception {
if (BugzillaFixture.current() == BugzillaFixture.BUGS_3_6) {
CustomTransitionManager ctm = new CustomTransitionManager();
- ctm.parse(bugzillaClient);
+ ctm.parse(new NullProgressMonitor(), bugzillaClient);
String start;
ArrayList<String> transitions = new ArrayList<String>();

Back to the top