aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.core.test/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'org.jacoco.core.test/src/org')
-rw-r--r--org.jacoco.core.test/src/org/jacoco/core/internal/flow/LabelFlowAnalyzerTest.java11
-rw-r--r--org.jacoco.core.test/src/org/jacoco/core/internal/flow/MethodProbesAdapterTest.java14
2 files changed, 9 insertions, 16 deletions
diff --git a/org.jacoco.core.test/src/org/jacoco/core/internal/flow/LabelFlowAnalyzerTest.java b/org.jacoco.core.test/src/org/jacoco/core/internal/flow/LabelFlowAnalyzerTest.java
index 5d3ec36e..6748ba54 100644
--- a/org.jacoco.core.test/src/org/jacoco/core/internal/flow/LabelFlowAnalyzerTest.java
+++ b/org.jacoco.core.test/src/org/jacoco/core/internal/flow/LabelFlowAnalyzerTest.java
@@ -107,15 +107,6 @@ public class LabelFlowAnalyzerTest {
@Test
public void testFlowScenario10() {
- analyzer.visitTryCatchBlock(new Label(), new Label(), label,
- "java/lang/Exception");
- analyzer.visitJumpInsn(GOTO, label);
- assertTrue(LabelInfo.isMultiTarget(label));
- assertFalse(LabelInfo.isSuccessor(label));
- }
-
- @Test
- public void testFlowScenario11() {
// Even if the same label is referenced multiple times but from the same
// source instruction this is only counted as one target.
analyzer.visitLookupSwitchInsn(label, new int[] { 0, 1 }, new Label[] {
@@ -125,7 +116,7 @@ public class LabelFlowAnalyzerTest {
}
@Test
- public void testFlowScenario12() {
+ public void testFlowScenario11() {
// Even if the same label is referenced multiple times but from the same
// source instruction this is only counted as one target.
analyzer.visitTableSwitchInsn(0, 1, label, new Label[] { label, label });
diff --git a/org.jacoco.core.test/src/org/jacoco/core/internal/flow/MethodProbesAdapterTest.java b/org.jacoco.core.test/src/org/jacoco/core/internal/flow/MethodProbesAdapterTest.java
index 5590323f..f4925460 100644
--- a/org.jacoco.core.test/src/org/jacoco/core/internal/flow/MethodProbesAdapterTest.java
+++ b/org.jacoco.core.test/src/org/jacoco/core/internal/flow/MethodProbesAdapterTest.java
@@ -321,7 +321,8 @@ public class MethodProbesAdapterTest implements IProbeIdGenerator {
adapter.visitTryCatchBlock(start, end, handler, "java/lang/Exception");
adapter.visitLabel(start);
- expectedVisitor.visitTryCatchBlock(start, end, handler, "java/lang/Exception");
+ expectedVisitor.visitTryCatchBlock(start, end, handler,
+ "java/lang/Exception");
expectedVisitor.visitLabel(start);
}
@@ -329,7 +330,6 @@ public class MethodProbesAdapterTest implements IProbeIdGenerator {
public void testVisitTryCatchBlockWithProbe() {
Label target = new Label();
LabelInfo.setSuccessor(target);
- LabelInfo.setTarget(target);
Label end = new Label();
Label handler = new Label();
Label start = new Label();
@@ -337,7 +337,8 @@ public class MethodProbesAdapterTest implements IProbeIdGenerator {
adapter.visitTryCatchBlock(target, end, handler, "java/lang/Exception");
adapter.visitLabel(target);
- expectedVisitor.visitTryCatchBlock(start, end, handler, "java/lang/Exception");
+ expectedVisitor.visitTryCatchBlock(start, end, handler,
+ "java/lang/Exception");
expectedVisitor.visitLabel(start);
expectedVisitor.visitProbe(1000);
expectedVisitor.visitLabel(target);
@@ -347,7 +348,6 @@ public class MethodProbesAdapterTest implements IProbeIdGenerator {
public void testVisitMultipleTryCatchBlocksWithProbe() {
Label target = new Label();
LabelInfo.setSuccessor(target);
- LabelInfo.setTarget(target);
Label end = new Label();
Label handler1 = new Label();
Label handler2 = new Label();
@@ -357,8 +357,10 @@ public class MethodProbesAdapterTest implements IProbeIdGenerator {
adapter.visitTryCatchBlock(target, end, handler2, "java/io/IOException");
adapter.visitLabel(target);
- expectedVisitor.visitTryCatchBlock(start, end, handler1, "java/lang/Exception");
- expectedVisitor.visitTryCatchBlock(start, end, handler2, "java/io/IOException");
+ expectedVisitor.visitTryCatchBlock(start, end, handler1,
+ "java/lang/Exception");
+ expectedVisitor.visitTryCatchBlock(start, end, handler2,
+ "java/io/IOException");
expectedVisitor.visitLabel(start);
expectedVisitor.visitProbe(1000);
expectedVisitor.visitLabel(target);