Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2006-09-14 18:58:22 -0400
committerrelves2006-09-14 18:58:22 -0400
commit211f178e3fe1dc6cc8ded0c5e9ebafd0550406e1 (patch)
treeaa2e7cc144601f1ce4455a53b7a6345584a4d065 /org.eclipse.mylyn.bugzilla.tests
parent4b722cae3bd789ca7803657254e9457fa1b078a5 (diff)
downloadorg.eclipse.mylyn.tasks-211f178e3fe1dc6cc8ded0c5e9ebafd0550406e1.tar.gz
org.eclipse.mylyn.tasks-211f178e3fe1dc6cc8ded0c5e9ebafd0550406e1.tar.xz
org.eclipse.mylyn.tasks-211f178e3fe1dc6cc8ded0c5e9ebafd0550406e1.zip
Progress on: 155279: Split search into headless and ui
https://bugs.eclipse.org/bugs/show_bug.cgi?id=155279
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaTests.java8
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RegularExpressionMatchTest.java87
2 files changed, 4 insertions, 91 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaTests.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaTests.java
index a69164540..ad5d5890e 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaTests.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaTests.java
@@ -37,17 +37,17 @@ public class AllBugzillaTests {
suite.addTestSuite(BugzillaConfigurationTest.class);
suite.addTestSuite(BugzillaTaskHyperlinkDetectorTest.class);
suite.addTestSuite(BugzillaSearchEngineTest.class);
- //suite.addTestSuite(Bugzilla220ParserTest.class);
+ // suite.addTestSuite(Bugzilla220ParserTest.class);
suite.addTestSuite(BugzillaRepositoryConnectorTest.class);
suite.addTestSuite(EncodingTest.class);
- //suite.addTestSuite(NewBugWizardTest.class);
- suite.addTestSuite(RegularExpressionMatchTest.class);
+ // suite.addTestSuite(NewBugWizardTest.class);
+ // suite.addTestSuite(RegularExpressionMatchTest.class);
// suite.addTestSuite(BugzillaNewBugParserTestCDT.class);
// suite.addTestSuite(BugzillaNewBugParserTestEquinox.class);
// suite.addTestSuite(BugzillaNewBugParserTestGMT.class);
// suite.addTestSuite(BugzillaNewBugParserTestPlatform.class);
// suite.addTestSuite(BugzillaNewBugParserTestVE.class);
- //suite.addTestSuite(BugzillaParserTestNoBug.class);
+ // suite.addTestSuite(BugzillaParserTestNoBug.class);
suite.addTestSuite(BugzillaProductParserTest.class);
// TODO: enable
// suite.addTest(new TestSuite(BugzillaParserTest.class));
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RegularExpressionMatchTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RegularExpressionMatchTest.java
deleted file mode 100644
index 2dcbdef32..000000000
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RegularExpressionMatchTest.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 - 2006 University Of British Columbia and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * University Of British Columbia - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.mylar.bugzilla.tests;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.StringReader;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.mylar.internal.bugzilla.core.BugzillaQueryHit;
-import org.eclipse.mylar.internal.bugzilla.core.IBugzillaConstants;
-import org.eclipse.mylar.internal.bugzilla.ui.search.BugzillaSearchEngine;
-
-public class RegularExpressionMatchTest extends TestCase {
-
- public void testMatchV218() throws IOException {
- BufferedReader in = new BufferedReader(new StringReader(BUGZILLA_218));
- BugzillaQueryHit hit = BugzillaSearchEngine.createHit(BugzillaSearchEngine.reValue, new NullProgressMonitor(),
- in, IBugzillaConstants.ECLIPSE_BUGZILLA_URL, 123);
- //assertEquals("nor", hit.getSeverity());
- assertEquals("P2", hit.getPriority());
- }
-
- public void testMatchV220() throws IOException {
- BufferedReader in = new BufferedReader(new StringReader(BUGZILLA_220));
- BugzillaQueryHit hit = BugzillaSearchEngine.createHit(BugzillaSearchEngine.reValueBugzilla220,
- new NullProgressMonitor(), in, IBugzillaConstants.ECLIPSE_BUGZILLA_URL, 123);
- //assertEquals("nor", hit.getSeverity());
- assertEquals("P2", hit.getPriority());
- }
-
- private static final String BUGZILLA_218 = " <tr class=\"bz_normal bz_P2 bz_ASSIGNED bz_even \">\n"
- + " \n"
- + "\n"
- + " <td class=\"first-child\">\n"
- + " <a href=\"show_bug.cgi?id=111870\">111870</a>\n"
- + " <span style=\"display: none\"></span>\n"
- + " </td>\n"
- + "\n"
- + " <td><nobr>nor</nobr>\n"
- + " </td>\n"
- + " <td><nobr>P2</nobr>\n"
- + " </td>\n"
- + " <td><nobr>Oth</nobr>\n"
- + " </td>\n"
- + " <td><nobr>wes.coelho&#64;gmail.com</nobr>\n"
- + " </td>\n"
- + " <td><nobr>ASSI</nobr>\n"
- + " </td>\n"
- + " <td><nobr></nobr>\n"
- + " </td>\n"
- + " <td>hour estimates are wrong\n"
- + " </td>\n" + "\n" + " </tr>\n";
-
- private static final String BUGZILLA_220 = " <tr class=\"bz_enhancement bz_P2 bz_ASSIGNED bz_row_odd \">\n"
- + " \n"
- + "\n"
- + " <td class=\"first-child\">\n"
- + " <a href=\"show_bug.cgi?id=114172\">114172</a>\n"
- + " <span style=\"display: none\"></span>\n"
- + " </td>\n"
- + "\n"
- + " <td style=\"white-space: nowrap\">nor\n"
- + " </td>\n"
- + " <td style=\"white-space: nowrap\">P2\n"
- + " </td>\n"
- + " <td style=\"white-space: nowrap\">PC\n"
- + " </td>\n"
- + " <td style=\"white-space: nowrap\">wes.coelho&#64;gmail.com\n"
- + " </td>\n"
- + " <td style=\"white-space: nowrap\">ASSI\n"
- + " </td>\n"
- + " <td style=\"white-space: nowrap\">\n"
- + " </td>\n"
- + " <td >Switch task data directory option on the task list\n" + " </td>\n" + "\n" + " </tr>\n";
-}

Back to the top