mirror of https://github.com/apache/lucene.git
LUCENE-5207: fix oops in test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523302 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b56c58884f
commit
691e3fc234
|
@ -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"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue