Author: catholicon
Date: Wed Sep 21 17:31:55 2016
New Revision: 1761787

URL: http://svn.apache.org/viewvc?rev=1761787&view=rev
Log:
OAK-4805: Misconfigured lucene index definition can render the whole system 
unusable

Fix test that broke due to 1761762

Modified:
    
jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexTest.java

Modified: 
jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexTest.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexTest.java?rev=1761787&r1=1761786&r2=1761787&view=diff
==============================================================================
--- 
jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexTest.java
 (original)
+++ 
jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexTest.java
 Wed Sep 21 17:31:55 2016
@@ -887,12 +887,10 @@ public class LuceneIndexTest {
         indexed = builder.getNodeState();
         tracker.update(indexed);
 
-        try {
-            queryIndex.getPlans(filter, null, indexed);
-            fail("Expecting UnsupportedOperationException exception");
-        } catch (UnsupportedOperationException ignore){
-            // expected
-        }
+        List<IndexPlan> list = queryIndex.getPlans(filter, null, indexed);
+        assertEquals("There must be only one plan", 1, list.size());
+        IndexPlan plan = list.get(0);
+        assertEquals("Didn't get the expected plan", "/test/oak:index/lucene", 
plan.getPlanName());
     }
 
     @Test


Reply via email to