Mercurial > hg > truffle
comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/reflect/Class_newInstance06.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.reflect; | 25 package com.oracle.graal.jtt.reflect; |
26 | 26 |
27 import com.oracle.graal.jtt.*; | |
27 import org.junit.*; | 28 import org.junit.*; |
28 | 29 |
29 @SuppressWarnings("static-method") | 30 public final class Class_newInstance06 extends JTTTest { |
30 public final class Class_newInstance06 { | |
31 | 31 |
32 public static final class Class_newInstance { | 32 public static final class Class_newInstance { |
33 | 33 |
34 @SuppressWarnings("unused") | 34 @SuppressWarnings("unused") |
35 private Class_newInstance(int i) { | 35 private Class_newInstance(int i) { |
42 return Class_newInstance.class.newInstance() != null; | 42 return Class_newInstance.class.newInstance() != null; |
43 } | 43 } |
44 return false; | 44 return false; |
45 } | 45 } |
46 | 46 |
47 @Test(expected = java.lang.InstantiationException.class) | 47 @Test |
48 public void run0() throws Throwable { | 48 public void run0() throws Throwable { |
49 test(0); | 49 runTest("test", 0); |
50 } | 50 } |
51 | 51 |
52 @Test | 52 @Test |
53 public void run1() throws Throwable { | 53 public void run1() throws Throwable { |
54 Assert.assertEquals(false, test(4)); | 54 runTest("test", 4); |
55 } | 55 } |
56 | 56 |
57 } | 57 } |