diff truffle/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/examples/MathPow.java @ 22272:5309cc9668e3

Cleanup DSL tests from instrumentation dependencies.
author Christian Humer <christian.humer@oracle.com>
date Thu, 01 Oct 2015 14:00:17 +0200
parents 14e6dfb1ef05
children
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/examples/MathPow.java	Thu Oct 01 13:38:28 2015 +0200
+++ b/truffle/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/examples/MathPow.java	Thu Oct 01 14:00:17 2015 +0200
@@ -22,23 +22,18 @@
  */
 package com.oracle.truffle.api.dsl.test.examples;
 
+import static com.oracle.truffle.api.dsl.test.examples.ExampleNode.createArguments;
+import static com.oracle.truffle.api.dsl.test.examples.ExampleNode.createTarget;
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
+
 import com.oracle.truffle.api.CallTarget;
 import com.oracle.truffle.api.dsl.Cached;
 import com.oracle.truffle.api.dsl.Specialization;
-
-import static com.oracle.truffle.api.dsl.test.examples.ExampleNode.createArguments;
-import static com.oracle.truffle.api.dsl.test.examples.ExampleNode.createTarget;
-
 import com.oracle.truffle.api.dsl.test.examples.MathPowFactory.MathPowNodeGen;
-import com.oracle.truffle.api.dsl.test.utilities.InstrumentationTestMode;
 import com.oracle.truffle.api.nodes.Node;
 
-import static org.junit.Assert.assertEquals;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
 /**
  * This example shows possible specializations for a simplified math pow node. It demonstrates how
  * multiple caches can coexist within in the same node. This example does not show the best possible
@@ -49,16 +44,6 @@
 @SuppressWarnings("unused")
 public class MathPow extends Node {
 
-    @Before
-    public void before() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
-        InstrumentationTestMode.set(true);
-    }
-
-    @After
-    public void after() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
-        InstrumentationTestMode.set(false);
-    }
-
     @Test
     public void testPow() {
         MathPowNode node = MathPowNodeGen.create(createArguments(2));