From 6fe5463700684eac229cfe2793ecd68e0e001024 Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Mon, 14 Nov 2016 18:34:14 +0300 Subject: [PATCH] support emulated flag in breakpoints tests --- .../debugger/ExecutionWithDebuggerToolsTestCase.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/java/testFramework/src/com/intellij/debugger/ExecutionWithDebuggerToolsTestCase.java b/java/testFramework/src/com/intellij/debugger/ExecutionWithDebuggerToolsTestCase.java index 2c2bfe9ec2f6..df42d962bf85 100644 --- a/java/testFramework/src/com/intellij/debugger/ExecutionWithDebuggerToolsTestCase.java +++ b/java/testFramework/src/com/intellij/debugger/ExecutionWithDebuggerToolsTestCase.java @@ -48,6 +48,7 @@ import com.intellij.util.lang.CompoundRuntimeException; import com.intellij.util.ui.UIUtil; import com.sun.jdi.Method; import com.sun.jdi.ThreadReference; +import org.jetbrains.java.debugger.breakpoints.properties.JavaMethodBreakpointProperties; import javax.swing.*; import java.util.ArrayList; @@ -396,6 +397,13 @@ public abstract class ExecutionWithDebuggerToolsTestCase extends ExecutionTestCa if (breakpoint != null) { println("MethodBreakpoint created at " + file.getVirtualFile().getName() + ":" + (commentLine + 2), ProcessOutputTypes.SYSTEM); + + String emulated = readValue(comment, "Emulated"); + if (emulated != null) { + ((JavaMethodBreakpointProperties)breakpoint.getXBreakpoint().getProperties()).EMULATED = Boolean.valueOf(emulated); + println("Emulated = " + emulated, ProcessOutputTypes.SYSTEM); + } + } } else if (comment.contains("Field")) {