Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Cela2017-10-02 13:38:13 +0000
committerAlexander Kurtakov2017-11-14 19:15:56 +0000
commitb32831e0a7b817c8b7fb43f6b4fb2d49122d8e81 (patch)
tree8b8e35fbaa02ed72a5ab89204274182f2304c079 /org.eclipse.ua.tests/help
parent03e4ea90b42d8471c43ed59b7e12b6bea00e2b37 (diff)
downloadeclipse.platform.ua-b32831e0a7b817c8b7fb43f6b4fb2d49122d8e81.tar.gz
eclipse.platform.ua-b32831e0a7b817c8b7fb43f6b4fb2d49122d8e81.tar.xz
eclipse.platform.ua-b32831e0a7b817c8b7fb43f6b4fb2d49122d8e81.zip
Bug 525267 - Update platform.ua to Lucene 7I20171114-2000
This migrates platform code to be compatible with Lucene 7. Added tests to support compatibility scenarios. All search tests succeed. Change-Id: Ied949b34b25fac9ef8a6f381c1c095f80bee05e4 Signed-off-by: Sopot Cela <scela@redhat.com>
Diffstat (limited to 'org.eclipse.ua.tests/help')
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/PrebuiltIndexCompatibility.java29
1 files changed, 25 insertions, 4 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/PrebuiltIndexCompatibility.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/PrebuiltIndexCompatibility.java
index fccaecec9..5d393bab0 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/PrebuiltIndexCompatibility.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/PrebuiltIndexCompatibility.java
@@ -83,12 +83,20 @@ public class PrebuiltIndexCompatibility {
/**
* Test index built with Lucene 6.1.0
*/
- @Test
- public void test6_1_0_IndexReadable() throws Exception {
+ @Test(expected = IllegalArgumentException.class)
+ public void test6_1_0_IndexUnReadable() throws Exception {
checkReadable("data/help/searchindex/index610");
}
/**
+ * Test index built with Lucene 7.0.0
+ */
+ @Test
+ public void test7_0_0_IndexReadable() throws Exception {
+ checkReadable("data/help/searchindex/index700");
+ }
+
+ /**
** Test compatibility of Lucene 1.9.1 index with current Lucene
*/
@Test
@@ -119,7 +127,15 @@ public class PrebuiltIndexCompatibility {
*/
@Test
public void test6_1_0Compatible() {
- checkCompatible("data/help/searchindex/index610", true);
+ checkCompatible("data/help/searchindex/index610", false);
+ }
+
+ /**
+ ** Test compatibility of Lucene 7.0.0 index with current Lucene
+ */
+ @Test
+ public void test7_0_0Compatible() {
+ checkCompatible("data/help/searchindex/index700", true);
}
@Test
@@ -147,7 +163,12 @@ public class PrebuiltIndexCompatibility {
@Test
public void test6_1_0LuceneCompatible() {
- checkLuceneCompatible("6.1.0", true);
+ checkLuceneCompatible("6.1.0", false);
+ }
+
+ @Test
+ public void test7_0_0LuceneCompatible() {
+ checkLuceneCompatible("7.0.0", true);
}
@Test

Back to the top