# HG changeset patch # User Doug Simon # Date 1339674886 -7200 # Node ID 592dfff9d4107ff6fc685e964f573401fcf4e045 # Parent 7034c6a6c999b2687aee42ce84a13353ee4023bf modified GraalCompilerTest so that subclasses can override the assertEquals test diff -r 7034c6a6c999 -r 592dfff9d410 graal/com.oracle.graal.tests/src/com/oracle/graal/compiler/tests/GraalCompilerTest.java --- 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); } }