Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2012-07-17 01:16:45 -0400
committerSteffen Pingel2012-07-20 06:46:57 -0400
commit802ae56db328d8adb4c1c1c77f2003d81bbf27fe (patch)
tree7fd63e0191474f18a16f9cc3753d727a7bbf63eb /org.eclipse.mylyn.bugzilla.tests/src
parent6586fcf0bbd341af3cf5d34b4b3a2f44272456e4 (diff)
downloadorg.eclipse.mylyn.tasks-802ae56db328d8adb4c1c1c77f2003d81bbf27fe.tar.gz
org.eclipse.mylyn.tasks-802ae56db328d8adb4c1c1c77f2003d81bbf27fe.tar.xz
org.eclipse.mylyn.tasks-802ae56db328d8adb4c1c1c77f2003d81bbf27fe.zip
NEW - bug 382194: Submitting new bug against product with spaces in
product name fails on bugzilla 4.2 https://bugs.eclipse.org/bugs/show_bug.cgi?id=382194 Change-Id: Iaf08595bb278584981fff89bf1da60a27a8a0f2e
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests/src')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java6
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaClientTest.java8
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaXmlRpcClientTest.java4
3 files changed, 9 insertions, 9 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java
index 48dc8f9ab..f1b61d4c4 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java
@@ -26,6 +26,7 @@ import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.mylyn.bugzilla.tests.support.BugzillaFixture;
import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
import org.eclipse.mylyn.commons.net.AuthenticationType;
+import org.eclipse.mylyn.commons.sdk.util.CommonTestUtil.PrivilegeLevel;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin;
@@ -57,7 +58,6 @@ import org.eclipse.mylyn.tasks.core.data.TaskDataModel;
import org.eclipse.mylyn.tasks.core.data.TaskOperation;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
-import org.eclipse.mylyn.commons.sdk.util.CommonTestUtil.PrivilegeLevel;
/**
* @author Rob Elves
@@ -518,7 +518,7 @@ public class BugzillaRepositoryConnectorTest extends AbstractBugzillaTest {
@Override
public String getProduct() {
- return "Scratch";
+ return "Product with Spaces";
}
};
final TaskMapping taskMappingSelect = new TaskMapping() {
@@ -529,7 +529,7 @@ public class BugzillaRepositoryConnectorTest extends AbstractBugzillaTest {
@Override
public String getSummary() {
- return "test the std workflow for Scratch";
+ return "test the std workflow for Product with Spaces";
}
@Override
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 794c12c26..5b1f3c8d6 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
@@ -24,6 +24,7 @@ import org.eclipse.mylyn.bugzilla.tests.support.BugzillaFixture;
import org.eclipse.mylyn.commons.net.AbstractWebLocation;
import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
import org.eclipse.mylyn.commons.net.AuthenticationType;
+import org.eclipse.mylyn.commons.sdk.util.CommonTestUtil.PrivilegeLevel;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttributeMapper;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient;
@@ -40,7 +41,6 @@ import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
import org.eclipse.mylyn.tasks.core.data.TaskData;
import org.eclipse.mylyn.tasks.core.data.TaskDataCollector;
-import org.eclipse.mylyn.commons.sdk.util.CommonTestUtil.PrivilegeLevel;
import org.eclipse.mylyn.tests.util.UrlBuilder;
/**
@@ -104,9 +104,9 @@ public class BugzillaClientTest extends TestCase {
assertEquals(2, config.getComponents("TestProduct").size());
assertEquals(4, config.getVersions("TestProduct").size());
assertEquals(4, config.getTargetMilestones("TestProduct").size());
- assertEquals(2, config.getComponents("Scratch").size());
- assertEquals(4, config.getVersions("Scratch").size());
- assertEquals(4, config.getTargetMilestones("Scratch").size());
+ assertEquals(2, config.getComponents("Product with Spaces").size());
+ assertEquals(4, config.getVersions("Product with Spaces").size());
+ assertEquals(4, config.getTargetMilestones("Product with Spaces").size());
}
public void testValidate() throws Exception {
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 767eda0f0..1fc0acf8f 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
@@ -34,6 +34,7 @@ import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.mylyn.bugzilla.tests.support.BugzillaFixture;
import org.eclipse.mylyn.commons.net.AuthenticationType;
import org.eclipse.mylyn.commons.net.WebLocation;
+import org.eclipse.mylyn.commons.sdk.util.CommonTestUtil.PrivilegeLevel;
import org.eclipse.mylyn.internal.bugzilla.core.AbstractBugzillaOperation;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttributeMapper;
@@ -67,7 +68,6 @@ import org.eclipse.mylyn.tasks.core.sync.SubmitJob;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
import org.eclipse.mylyn.tests.util.TestFixture;
-import org.eclipse.mylyn.commons.sdk.util.CommonTestUtil.PrivilegeLevel;
/**
* Tests should be run against Bugzilla 3.6 or greater
@@ -983,7 +983,7 @@ public class BugzillaXmlRpcClientTest extends TestCase {
bugzillaClient.updateProductInfo(new NullProgressMonitor(), repositoryConfiguration);
for (String product : repositoryConfiguration.getProducts()) {
- if (product.equals("ManualTest") || product.equals("Scratch") || product.equals("TestProduct")) {
+ if (product.equals("ManualTest") || product.equals("Product with Spaces") || product.equals("TestProduct")) {
assertEquals("---", repositoryConfiguration.getDefaultMilestones(product));
} else {
fail("never reach this");

Back to the top