Skip to content

Apache Lucene open-source search software

LUCENE-5207: fix oops in test

Robert Muir691e3fc234f7
diff --git a/lucene/expressions/src/test/org/apache/lucene/expressions/js/TestCustomFunctions.java b/lucene/expressions/src/test/org/apache/lucene/expressions/js/TestCustomFunctions.java
index 361c80fe7de..cdb06f2e870 100644
--- a/lucene/expressions/src/test/org/apache/lucene/expressions/js/TestCustomFunctions.java
+++ b/lucene/expressions/src/test/org/apache/lucene/expressions/js/TestCustomFunctions.java
@@ -152,6 +152,7 @@ public class TestCustomFunctions extends LuceneTestCase {
functions.put("foo", NestedNotPublic.class.getMethod("method"));
try {
JavascriptCompiler.compile("foo()", functions, getClass().getClassLoader());
+ fail();
} catch (IllegalArgumentException e) {
assertTrue(e.getMessage().contains("is not public"));
}