comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/micro/InvokeVirtual_02.java @ 7282:390448a6b535

converted the JTT tests to use the GraalCompilerTest framework which offers more control over what is compiled and executed the HP_series and FloatingReads tests have been disabled temporarily
author Doug Simon <doug.simon@oracle.com>
date Thu, 20 Dec 2012 14:59:57 +0100
parents e808627bd16f
children 64dcb92ee75a
comparison
equal deleted inserted replaced
7281:e960cda050d7 7282:390448a6b535
22 */ 22 */
23 /* 23 /*
24 */ 24 */
25 package com.oracle.graal.jtt.micro; 25 package com.oracle.graal.jtt.micro;
26 26
27 import com.oracle.graal.jtt.*;
27 import org.junit.*; 28 import org.junit.*;
28 29
29 public class InvokeVirtual_02 { 30 public class InvokeVirtual_02 extends JTTTest {
30 31
31 static class A { 32 static class A {
32 33
33 long plus(long a) { 34 long plus(long a) {
34 return a; 35 return a;
68 return 42; 69 return 42;
69 } 70 }
70 71
71 @Test 72 @Test
72 public void run0() throws Throwable { 73 public void run0() throws Throwable {
73 Assert.assertEquals(0L, test(0L)); 74 runTest("test", 0L);
74 } 75 }
75 76
76 @Test 77 @Test
77 public void run1() throws Throwable { 78 public void run1() throws Throwable {
78 Assert.assertEquals(11L, test(1L)); 79 runTest("test", 1L);
79 } 80 }
80 81
81 @Test 82 @Test
82 public void run2() throws Throwable { 83 public void run2() throws Throwable {
83 Assert.assertEquals(22L, test(2L)); 84 runTest("test", 2L);
84 } 85 }
85 86
86 @Test 87 @Test
87 public void run3() throws Throwable { 88 public void run3() throws Throwable {
88 Assert.assertEquals(42L, test(3L)); 89 runTest("test", 3L);
89 } 90 }
90 91
91 } 92 }