Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2010-01-29 15:18:20 -0500
committerrelves2010-01-29 15:18:20 -0500
commit74709a12fa13996e8690d36299d1c2a9602b4b8e (patch)
treec12f472b9a719b6922230f3fd84c4fdf4cd532de /org.eclipse.mylyn.bugzilla.tests
parent9bf7462d812cc1b6b83a9bf3deac16961b218154 (diff)
downloadorg.eclipse.mylyn.tasks-74709a12fa13996e8690d36299d1c2a9602b4b8e.tar.gz
org.eclipse.mylyn.tasks-74709a12fa13996e8690d36299d1c2a9602b4b8e.tar.xz
org.eclipse.mylyn.tasks-74709a12fa13996e8690d36299d1c2a9602b4b8e.zip
REOPENED - bug 290465: fix Bugzilla test suite
https://bugs.eclipse.org/bugs/show_bug.cgi?id=290465
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaClientTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaClientTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaClientTest.java
index 8bd77767d..43227dfbd 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaClientTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaClientTest.java
@@ -31,6 +31,7 @@ import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttributeMapper;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector;
+import org.eclipse.mylyn.internal.bugzilla.core.BugzillaVersion;
import org.eclipse.mylyn.internal.bugzilla.core.RepositoryConfiguration;
import org.eclipse.mylyn.internal.tasks.core.RepositoryQuery;
import org.eclipse.mylyn.tasks.core.RepositoryResponse;
@@ -142,6 +143,10 @@ public class BugzillaClientTest extends TestCase {
@SuppressWarnings("null")
public void testFlags() throws Exception {
+ BugzillaVersion version = new BugzillaVersion(BugzillaFixture.current().getVersion());
+ if (version.isSmallerOrEquals(BugzillaVersion.BUGZILLA_3_2)) {
+ return;
+ }
String taskNumber = "10";
TaskData taskData = BugzillaFixture.current().getTask(taskNumber, client);
assertNotNull(taskData);
@@ -342,6 +347,12 @@ public class BugzillaClientTest extends TestCase {
}
public void testCustomAttributes() throws Exception {
+
+ BugzillaVersion version = new BugzillaVersion(BugzillaFixture.current().getVersion());
+ if (version.isSmallerOrEquals(BugzillaVersion.BUGZILLA_3_2)) {
+ return;
+ }
+
String taskNumber = "1";
TaskData taskData = BugzillaFixture.current().getTask(taskNumber, client);
assertNotNull(taskData);

Back to the top