Mercurial > hg > graal-jvmci-8
changeset 5599:592dfff9d410
modified GraalCompilerTest so that subclasses can override the assertEquals test
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 14 Jun 2012 13:54:46 +0200 |
parents | 7034c6a6c999 |
children | c78ba30e7e1a |
files | graal/com.oracle.graal.tests/src/com/oracle/graal/compiler/tests/GraalCompilerTest.java |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.tests/src/com/oracle/graal/compiler/tests/GraalCompilerTest.java Thu Jun 14 12:30:34 2012 +0200 +++ b/graal/com.oracle.graal.tests/src/com/oracle/graal/compiler/tests/GraalCompilerTest.java Thu Jun 14 13:54:46 2012 +0200 @@ -147,6 +147,10 @@ private static int compilationId = 0; + protected void assertEquals(Object expected, Object actual) { + Assert.assertEquals(expected, actual); + } + protected void test(String name, Object... args) { Method method = getMethod(name); Object expect = null; @@ -171,7 +175,7 @@ } } else { Object actual = compiledMethod.executeVarargs(args); - Assert.assertEquals(expect, actual); + assertEquals(expect, actual); } }