aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/model/JVMFunctionTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/test/kotlin/model/JVMFunctionTest.kt')
-rw-r--r--core/src/test/kotlin/model/JVMFunctionTest.kt29
1 files changed, 29 insertions, 0 deletions
diff --git a/core/src/test/kotlin/model/JVMFunctionTest.kt b/core/src/test/kotlin/model/JVMFunctionTest.kt
new file mode 100644
index 00000000..a2fb0d2a
--- /dev/null
+++ b/core/src/test/kotlin/model/JVMFunctionTest.kt
@@ -0,0 +1,29 @@
+package org.jetbrains.dokka.tests.model
+
+import com.sun.tools.javac.util.BaseFileManager
+import org.jetbrains.dokka.Content
+import org.jetbrains.dokka.NodeKind
+import org.jetbrains.dokka.Platform
+import org.jetbrains.dokka.tests.BaseFunctionTest
+import org.jetbrains.dokka.tests.ModelConfig
+import org.jetbrains.dokka.tests.verifyPackageMember
+import org.junit.Assert
+import org.junit.Test
+
+class JVMFunctionTest: BaseFunctionTest(Platform.jvm) {
+ @Test
+ fun annotatedFunction() {
+ verifyPackageMember("testdata/functions/annotatedFunction.kt", ModelConfig(
+ analysisPlatform = Platform.jvm,
+ withKotlinRuntime = true
+ )) { func ->
+ Assert.assertEquals(1, func.annotations.count())
+ with(func.annotations[0]) {
+ Assert.assertEquals("Strictfp", name)
+ Assert.assertEquals(Content.Empty, content)
+ Assert.assertEquals(NodeKind.Annotation, kind)
+ }
+ }
+ }
+
+} \ No newline at end of file