Skip to content

Commit

Permalink
Merge pull request #41 from tgodzik/add-dep-modules
Browse files Browse the repository at this point in the history
improvement: Add method to test dependency modules
  • Loading branch information
adpi2 committed Mar 25, 2024
2 parents cf47985 + 5039bc4 commit 6611d51
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions bsp-testkit/client/TestClient.kt
Expand Up @@ -208,8 +208,7 @@ open class TestClient(
assertJsonEquals(expectedResult, result)
}
}



fun testJvmCompileClasspath(
timeout: Duration,
params: JvmCompileClasspathParams,
Expand All @@ -222,6 +221,18 @@ open class TestClient(
}
}

fun testDependencyModule(
timeout: Duration,
params: DependencyModulesParams,
expectedResult: DependencyModulesResult,
) {
val transformedParams = applyJsonTransform(params)
test(timeout) { session, _ ->
val result = session.server.buildTargetDependencyModules(transformedParams).await()
assertJsonEquals(expectedResult, result)
}
}

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

0 comments on commit 6611d51

Please sign in to comment.