Mercurial > hg > graal-compiler
diff graal/com.oracle.graal.test/src/com/oracle/graal/test/GraalTest.java @ 14645:4f5a97ba0883
Also look for private test methods
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Thu, 20 Mar 2014 13:42:27 -0700 |
parents | faa6fda7ee36 |
children | c6fcb4a36c6a |
line wrap: on
line diff
--- a/graal/com.oracle.graal.test/src/com/oracle/graal/test/GraalTest.java Thu Mar 20 13:41:59 2014 -0700 +++ b/graal/com.oracle.graal.test/src/com/oracle/graal/test/GraalTest.java Thu Mar 20 13:42:27 2014 -0700 @@ -48,6 +48,15 @@ found = m; } } + if (found == null) { + /* Now look for non-public methods (but this does not look in superclasses). */ + for (Method m : clazz.getDeclaredMethods()) { + if (m.getName().equals(methodName)) { + Assert.assertNull(found); + found = m; + } + } + } if (found != null) { return found; } else {