Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2012-06-26 19:19:20 +0000
committerJohn Arthorne2012-07-24 17:19:10 +0000
commitb2cd66c448e1b9fdbc44505ab196dcda7c11dc54 (patch)
tree6d4ec99ce6d07855b9fe4b9d01866b5150d2fbff
parent42c842263c0e3058d987be5b3283c350f4c53d4f (diff)
downloadeclipse.platform.ua-b2cd66c448e1b9fdbc44505ab196dcda7c11dc54.tar.gz
eclipse.platform.ua-b2cd66c448e1b9fdbc44505ab196dcda7c11dc54.tar.xz
eclipse.platform.ua-b2cd66c448e1b9fdbc44505ab196dcda7c11dc54.zip
Removed test based on removed lucene extension point
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/AllSearchTests.java1
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/LuceneParticipantTest.java70
-rw-r--r--org.eclipse.ua.tests/plugin.xml17
3 files changed, 0 insertions, 88 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/AllSearchTests.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/AllSearchTests.java
index ed620f7d7..a8a67b42c 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/AllSearchTests.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/AllSearchTests.java
@@ -41,7 +41,6 @@ public class AllSearchTests extends TestSuite {
addTest(SearchParticipantTest.suite());
addTest(SearchParticipantXMLTest.suite());
addTest(SearchRanking.suite());
- addTest(LuceneParticipantTest.suite());
addTestSuite(WorkingSetManagerTest.class);
addTestSuite(InfocenterWorkingSetManagerTest.class);
addTestSuite(PrebuiltIndexCompatibility.class);
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/LuceneParticipantTest.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/LuceneParticipantTest.java
deleted file mode 100644
index f3380019a..000000000
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/LuceneParticipantTest.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 IBM Corporation 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:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.ua.tests.help.search;
-
-
-import org.eclipse.help.internal.search.SearchHit;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-
-public class LuceneParticipantTest extends TestCase {
-
- /*
- * Returns an instance of this Test.
- */
- public static Test suite() {
- return new TestSuite(LuceneParticipantTest.class);
- }
-
- public void testSearchFirstWordInFirstDoc() {
- SearchTestUtils.searchAllLocales("sehdtegd", new String[] { "/org.eclipse.help.base/lucene1.xml" });
- }
-
- public void testSearchLastWordInFirstDoc() {
- SearchTestUtils.searchAllLocales("jduehdye", new String[] { "/org.eclipse.help.base/lucene1.xml" });
- }
-
- public void testSearchUsingAndInFirstDoc() {
- SearchTestUtils.searchAllLocales("jduehdye AND sehdtegd", new String[] { "/org.eclipse.help.base/lucene1.xml" });
- }
-
- public void testSearchUsingAndInSeparateDocs() {
- SearchTestUtils.searchAllLocales("jduehdye and nhduehrf", new String[0]);
- }
-
- public void testSearchExactMatch() {
- SearchTestUtils.searchAllLocales("\"sehdtegd jduehdye\"", new String[] { "/org.eclipse.help.base/lucene1.xml" });
- }
-
- public void testSearchExactMatchNotFound() {
- SearchTestUtils.searchAllLocales("\"jduehdye sehdtegd\"", new String[0]);
- }
-
- public void testSearchWordInSecondDoc() {
- SearchTestUtils.searchAllLocales("nhduehrf", new String[] { "/org.eclipse.help.base/lucene2.xml" });
- }
-
- public void testReturnedTitle() {
- SearchHit[] hits = SearchTestUtils.getSearchHits("jduehdye", "en");
- assertEquals(hits.length,1);
- assertEquals("Title1", hits[0].getLabel());
- }
-
- public void testReturnedSummary() {
- SearchHit[] hits = SearchTestUtils.getSearchHits("jduehdye", "en");
- assertEquals(hits.length,1);
- assertEquals("Summary1", hits[0].getSummary());
- }
-
-}
diff --git a/org.eclipse.ua.tests/plugin.xml b/org.eclipse.ua.tests/plugin.xml
index c1ab1c748..0826e431d 100644
--- a/org.eclipse.ua.tests/plugin.xml
+++ b/org.eclipse.ua.tests/plugin.xml
@@ -627,23 +627,6 @@
</serviceSelector>
</extension>
<extension
- point="org.eclipse.help.base.luceneSearchParticipants">
- <searchParticipant
- headless="false"
- icon="icons/sample4.gif"
- id="org.eclipse.ua.tests.luceneTestParticipant"
- name="Lucene Search Participant Test"
- participant="org.eclipse.ua.tests.help.search.MockLuceneParticipant">
- </searchParticipant>
- <searchParticipant
- headless="false"
- icon="icons/sample4.gif"
- id="org.eclipse.ua.tests.xmlLuceneParticipant"
- name="XML Lucene Participant"
- participant="org.eclipse.ua.tests.help.search.MockLuceneXMLParticipant">
- </searchParticipant>
- </extension>
- <extension
point="org.eclipse.help.base.searchParticipant">
<searchParticipant
headless="false"

Back to the top