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:
Robert Muir 2013-09-14 19:40:57 +00:00
parent b56c58884f
commit 691e3fc234
1 changed files with 1 additions and 0 deletions

View File

@ -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"));
}