Skip to content

Commit

Permalink
Merge pull request #43 from tgodzik/add-jvm-classpath
Browse files Browse the repository at this point in the history
chore: Add testJvmCompileClasspath request and bump bsp
  • Loading branch information
adpi2 committed Mar 25, 2024
2 parents f52cf94 + ac71ab4 commit cf47985
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MODULE.bazel
Expand Up @@ -18,7 +18,7 @@ maven.install(
artifacts = [
"com.google.code.gson:gson:2.10.1",
"com.google.guava:guava:31.0.1-jre",
"ch.epfl.scala:bsp4j:2.2.0-M1",
"ch.epfl.scala:bsp4j:2.2.0-M2",
"org.junit.jupiter:junit-jupiter:5.10.1",
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3",
"org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3",
Expand Down
13 changes: 13 additions & 0 deletions bsp-testkit/client/TestClient.kt
Expand Up @@ -209,6 +209,19 @@ open class TestClient(
}
}


fun testJvmCompileClasspath(
timeout: Duration,
params: JvmCompileClasspathParams,
expectedResult: JvmCompileClasspathResult,
) {
val transformedParams = applyJsonTransform(params)
test(timeout) { session, _ ->
val result = session.server.buildTargetJvmCompileClasspath(transformedParams).await()
assertJsonEquals(expectedResult, result)
}
}

/**
* Simulates a typical workflow
*/
Expand Down

0 comments on commit cf47985

Please sign in to comment.