comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/reflect/Field_get01.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 c38d2870439e
comparison
equal deleted inserted replaced
7281:e960cda050d7 7282:390448a6b535
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.graal.jtt.reflect; 23 package com.oracle.graal.jtt.reflect;
24 24
25 import com.oracle.graal.jtt.*;
25 import org.junit.*; 26 import org.junit.*;
26 27
27 /* 28 /*
28 */ 29 */
29 public class Field_get01 { 30 public class Field_get01 extends JTTTest {
30 31
31 public static final byte byteField = 11; 32 public static final byte byteField = 11;
32 public static final short shortField = 12; 33 public static final short shortField = 12;
33 public static final char charField = 13; 34 public static final char charField = 13;
34 public static final int intField = 14; 35 public static final int intField = 14;
58 return false; 59 return false;
59 } 60 }
60 61
61 @Test 62 @Test
62 public void run0() throws Throwable { 63 public void run0() throws Throwable {
63 Assert.assertEquals(true, test(0)); 64 runTest("test", 0);
64 } 65 }
65 66
66 @Test 67 @Test
67 public void run1() throws Throwable { 68 public void run1() throws Throwable {
68 Assert.assertEquals(true, test(1)); 69 runTest("test", 1);
69 } 70 }
70 71
71 @Test 72 @Test
72 public void run2() throws Throwable { 73 public void run2() throws Throwable {
73 Assert.assertEquals(true, test(2)); 74 runTest("test", 2);
74 } 75 }
75 76
76 @Test 77 @Test
77 public void run3() throws Throwable { 78 public void run3() throws Throwable {
78 Assert.assertEquals(true, test(3)); 79 runTest("test", 3);
79 } 80 }
80 81
81 @Test 82 @Test
82 public void run4() throws Throwable { 83 public void run4() throws Throwable {
83 Assert.assertEquals(true, test(4)); 84 runTest("test", 4);
84 } 85 }
85 86
86 @Test 87 @Test
87 public void run5() throws Throwable { 88 public void run5() throws Throwable {
88 Assert.assertEquals(true, test(5)); 89 runTest("test", 5);
89 } 90 }
90 91
91 @Test 92 @Test
92 public void run6() throws Throwable { 93 public void run6() throws Throwable {
93 Assert.assertEquals(true, test(6)); 94 runTest("test", 6);
94 } 95 }
95 96
96 @Test 97 @Test
97 public void run7() throws Throwable { 98 public void run7() throws Throwable {
98 Assert.assertEquals(true, test(7)); 99 runTest("test", 7);
99 } 100 }
100 101
101 @Test 102 @Test
102 public void run8() throws Throwable { 103 public void run8() throws Throwable {
103 Assert.assertEquals(false, test(8)); 104 runTest("test", 8);
104 } 105 }
105 106
106 } 107 }