diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-11-04 14:09:53 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-11-04 14:09:53 +0100 |
commit | 3655b706ea22ab9d7ee02a8d5074aa583e848018 (patch) | |
tree | 461aa43e4dc1aa31b02b0bfd4ecfeeb23351a88f /test/src | |
parent | 21dcc4a472f88dd3ce1a1e7d8406905552896d3c (diff) | |
download | dokka-3655b706ea22ab9d7ee02a8d5074aa583e848018.tar.gz dokka-3655b706ea22ab9d7ee02a8d5074aa583e848018.tar.bz2 dokka-3655b706ea22ab9d7ee02a8d5074aa583e848018.zip |
streamline setup code
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/TestAPI.kt | 3 |
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)) |