aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-11-04 14:09:53 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-11-04 14:09:53 +0100
commit3655b706ea22ab9d7ee02a8d5074aa583e848018 (patch)
tree461aa43e4dc1aa31b02b0bfd4ecfeeb23351a88f /test/src
parent21dcc4a472f88dd3ce1a1e7d8406905552896d3c (diff)
downloaddokka-3655b706ea22ab9d7ee02a8d5074aa583e848018.tar.gz
dokka-3655b706ea22ab9d7ee02a8d5074aa583e848018.tar.bz2
dokka-3655b706ea22ab9d7ee02a8d5074aa583e848018.zip
streamline setup code
Diffstat (limited to 'test/src')
-rw-r--r--test/src/TestAPI.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt
index 82353610..e65164fe 100644
--- a/test/src/TestAPI.kt
+++ b/test/src/TestAPI.kt
@@ -36,7 +36,8 @@ public fun verifyModel(vararg roots: ContentRoot,
}
}
- val environment = AnalysisEnvironment(messageCollector) {
+ val environment = AnalysisEnvironment(messageCollector)
+ environment.apply {
if (withJdk || withKotlinRuntime) {
val stringRoot = PathManager.getResourceRoot(String::class.java, "/java/lang/String.class")
addClasspath(File(stringRoot))