aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-16 00:10:39 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-16 00:10:39 +0400
commit62177099390dccf4fba3facb668415b8633e6e24 (patch)
treeec6d1d5551aa36dc2eee27ac48bf54a17f2e732f /test
parent8f24c0a3a6dec1b63cad1b68ebfec2b528b6b87f (diff)
downloaddokka-62177099390dccf4fba3facb668415b8633e6e24.tar.gz
dokka-62177099390dccf4fba3facb668415b8633e6e24.tar.bz2
dokka-62177099390dccf4fba3facb668415b8633e6e24.zip
Add ignored test for mixed Java + Kotlin
Diffstat (limited to 'test')
-rw-r--r--test/data/java/member.java12
-rw-r--r--test/src/model/JavaTest.kt23
2 files changed, 35 insertions, 0 deletions
diff --git a/test/data/java/member.java b/test/data/java/member.java
new file mode 100644
index 00000000..5eb9209f
--- /dev/null
+++ b/test/data/java/member.java
@@ -0,0 +1,12 @@
+package test
+
+class Test {
+ /**
+ * Summary for Function
+ * @param name is String parameter
+ * @param value is int parameter
+ */
+ public void Function(String name, int value) {
+
+ }
+} \ No newline at end of file
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt
new file mode 100644
index 00000000..2fd197d5
--- /dev/null
+++ b/test/src/model/JavaTest.kt
@@ -0,0 +1,23 @@
+package org.jetbrains.dokka.tests
+
+import kotlin.test.*
+import org.jetbrains.dokka.*
+import org.junit.*
+
+public class JavaTest {
+ Ignore Test fun function() {
+ verifyModel("test/data/java/") { model ->
+ val pkg = model.members.single()
+ with(pkg.members.single()) {
+ assertEquals("fn", name)
+ assertEquals(DocumentationNode.Kind.Function, kind)
+ assertEquals("Function fn", doc.summary)
+ assertEquals("Unit", detail(DocumentationNode.Kind.Type).name)
+ assertTrue(members.none())
+ assertTrue(links.none())
+ }
+ }
+ }
+
+}
+