aboutsummaryrefslogtreecommitdiffstats
path: root/org.jacoco.core.test/src/org/jacoco/core/internal/instr/ClassInstrumenterTest.java
diff options
context:
space:
mode:
authorMarc R. Hoffmann <hoffmann@mountainminds.com>2012-09-09 22:08:58 +0200
committerMarc R. Hoffmann <hoffmann@mountainminds.com>2012-09-09 22:08:58 +0200
commit32e3a05444847ecde19cef575e57fec51c85d085 (patch)
treeee7d032bbaa2347ac253f02d6fde63a55db093a3 /org.jacoco.core.test/src/org/jacoco/core/internal/instr/ClassInstrumenterTest.java
parentb5f62d692bea12eea4ef449598a73b5b7cff8d3d (diff)
downloadplatform_external_jacoco-32e3a05444847ecde19cef575e57fec51c85d085.tar.gz
platform_external_jacoco-32e3a05444847ecde19cef575e57fec51c85d085.tar.bz2
platform_external_jacoco-32e3a05444847ecde19cef575e57fec51c85d085.zip
Migrate to ASM 4.0, support INVOKEDYNAMIC.
Diffstat (limited to 'org.jacoco.core.test/src/org/jacoco/core/internal/instr/ClassInstrumenterTest.java')
-rw-r--r--org.jacoco.core.test/src/org/jacoco/core/internal/instr/ClassInstrumenterTest.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/org.jacoco.core.test/src/org/jacoco/core/internal/instr/ClassInstrumenterTest.java b/org.jacoco.core.test/src/org/jacoco/core/internal/instr/ClassInstrumenterTest.java
index a9e8a96d..ca4243d5 100644
--- a/org.jacoco.core.test/src/org/jacoco/core/internal/instr/ClassInstrumenterTest.java
+++ b/org.jacoco.core.test/src/org/jacoco/core/internal/instr/ClassInstrumenterTest.java
@@ -17,8 +17,9 @@ import org.jacoco.core.runtime.IRuntime;
import org.jacoco.core.runtime.LoggerRuntime;
import org.junit.Before;
import org.junit.Test;
+import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.MethodVisitor;
-import org.objectweb.asm.commons.EmptyVisitor;
+import org.objectweb.asm.Opcodes;
/**
* Unit tests for {@link ClassInstrumenter}.
@@ -32,7 +33,9 @@ public class ClassInstrumenterTest {
@Before
public void setup() {
runtime = new LoggerRuntime();
- instrumenter = new ClassInstrumenter(123, runtime, new EmptyVisitor());
+ instrumenter = new ClassInstrumenter(123, runtime, new ClassVisitor(
+ Opcodes.ASM4) {
+ });
}
@Test(expected = IllegalStateException.class)
@@ -51,7 +54,8 @@ public class ClassInstrumenterTest {
@Test
public void testNoMethodVisitor() {
- instrumenter = new ClassInstrumenter(123, runtime, new EmptyVisitor() {
+ instrumenter = new ClassInstrumenter(123, runtime, new ClassVisitor(
+ Opcodes.ASM4) {
@Override
public MethodVisitor visitMethod(int access, String name,
String desc, String signature, String[] exceptions) {