mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
(cherry picked from commit bcb3c215ddcccfad3311ed5163503175e54254a4) IJ-CR-166188 GitOrigin-RevId: 0a16d89676ee5f7d9f80688805bd4312d7f20ccd
36 lines
944 B
Kotlin
36 lines
944 B
Kotlin
@file:Suppress("TestFunctionName")
|
|
|
|
package com.intellij.mcpserver.toolsets
|
|
|
|
import com.intellij.mcpserver.McpToolsetTestBase
|
|
import com.intellij.mcpserver.toolsets.debugger.DebuggerToolset
|
|
import io.kotest.common.runBlocking
|
|
import kotlinx.serialization.json.JsonPrimitive
|
|
import kotlinx.serialization.json.buildJsonObject
|
|
import org.junit.jupiter.api.Disabled
|
|
import org.junit.jupiter.api.Test
|
|
|
|
class DebuggerToolsetTest : McpToolsetTestBase() {
|
|
@Test
|
|
fun get_debugger_breakpoints() = runBlocking {
|
|
testMcpTool(
|
|
DebuggerToolset::get_debugger_breakpoints.name,
|
|
buildJsonObject {},
|
|
"[]"
|
|
)
|
|
}
|
|
|
|
|
|
@Disabled("Tool doesn't work")
|
|
@Test
|
|
fun toggle_debugger_breakpoint() = runBlocking {
|
|
testMcpTool(
|
|
DebuggerToolset::toggle_debugger_breakpoint.name,
|
|
buildJsonObject {
|
|
put("filePathInProject", JsonPrimitive("Main.java"))
|
|
put("line", JsonPrimitive(0))
|
|
},
|
|
"[]"
|
|
)
|
|
}
|
|
} |