diff --git a/platform/xdebugger-impl/testSrc/com/intellij/xdebugger/XDebuggerTestUtil.java b/platform/xdebugger-impl/testSrc/com/intellij/xdebugger/XDebuggerTestUtil.java index 7d983d653130..7772f2e9426d 100644 --- a/platform/xdebugger-impl/testSrc/com/intellij/xdebugger/XDebuggerTestUtil.java +++ b/platform/xdebugger-impl/testSrc/com/intellij/xdebugger/XDebuggerTestUtil.java @@ -69,6 +69,15 @@ public class XDebuggerTestUtil { XDebuggerUtil.getInstance().toggleLineBreakpoint(project, file, line); } + public static

void insertBreakpoint(final Project project, final P properties, final Class, P>> typeClass) { + new WriteAction() { + protected void run(final Result result) { + XBreakpointManager breakpointManager = XDebuggerManager.getInstance(project).getBreakpointManager(); + breakpointManager.addBreakpoint((XBreakpointType,P>)XDebuggerUtil.getInstance().findBreakpointType(typeClass), properties); + } + }.execute(); + } + public static void assertPosition(XSourcePosition pos, VirtualFile file, int line) throws IOException { Assert.assertNotNull(pos); Assert.assertEquals(new File(file.getPath()).getCanonicalPath(), new File(pos.getFile().getPath()).getCanonicalPath());