aboutsummaryrefslogtreecommitdiff
path: root/test/src/TestAPI.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-09-09 14:54:19 +0200
committerDmitry Jemerov <yole@jetbrains.com>2015-09-09 14:54:19 +0200
commit1e862f2fc05c9d01d4d9c00de5d1a4235ff85a9d (patch)
tree147d9f03651404de595b81090767cefe38d9778b /test/src/TestAPI.kt
parent60c915a9d35d8026bd2fc1a193b97b89cbf29621 (diff)
downloaddokka-1e862f2fc05c9d01d4d9c00de5d1a4235ff85a9d.tar.gz
dokka-1e862f2fc05c9d01d4d9c00de5d1a4235ff85a9d.tar.bz2
dokka-1e862f2fc05c9d01d4d9c00de5d1a4235ff85a9d.zip
render annotations with @; render only @MustBeDocumented annotations; render all modifiers
Diffstat (limited to 'test/src/TestAPI.kt')
-rw-r--r--test/src/TestAPI.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt
index 165278f9..88d19036 100644
--- a/test/src/TestAPI.kt
+++ b/test/src/TestAPI.kt
@@ -9,7 +9,6 @@ import org.jetbrains.kotlin.cli.common.messages.MessageCollector
import org.jetbrains.kotlin.cli.jvm.config.JavaSourceRoot
import org.jetbrains.kotlin.config.ContentRoot
import org.jetbrains.kotlin.config.KotlinSourceRoot
-import org.jetbrains.kotlin.utils.addToStdlib.firstIsInstance
import org.junit.Assert
import java.io.File
import kotlin.test.fail
@@ -33,8 +32,10 @@ public fun verifyModel(vararg roots: ContentRoot, verifier: (DocumentationModule
}
val environment = AnalysisEnvironment(messageCollector) {
- val stringRoot = PathManager.getResourceRoot(javaClass<String>(), "/java/lang/String.class")
+ val stringRoot = PathManager.getResourceRoot(String::class.java, "/java/lang/String.class")
addClasspath(File(stringRoot))
+ val kotlinPairRoot = PathManager.getResourceRoot(Pair::class.java, "/kotlin/Pair.class")
+ addClasspath(File(kotlinPairRoot))
addRoots(roots.toList())
}
val options = DocumentationOptions(includeNonPublic = true, skipEmptyPackages = false, sourceLinks = listOf<SourceLinkDefinition>())