Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2012-06-26 19:19:20 +0000
committerJohn Arthorne2012-07-24 17:19:10 +0000
commitb2cd66c448e1b9fdbc44505ab196dcda7c11dc54 (patch)
tree6d4ec99ce6d07855b9fe4b9d01866b5150d2fbff /org.eclipse.ua.tests/help
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
Diffstat (limited to 'org.eclipse.ua.tests/help')
-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
2 files changed, 0 insertions, 71 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());
- }
-
-}

Back to the top