aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-06-26 15:26:14 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-06-26 15:26:14 +0300
commit6805bae192908c287ffd0fcad9ece50541db0e46 (patch)
tree8e6c91bb3c81ead3e4258a0b221b5bf50e843133 /core/src/test/kotlin
parent4810d07256c86825b85807dd93448279bde5b3b9 (diff)
downloaddokka-6805bae192908c287ffd0fcad9ece50541db0e46.tar.gz
dokka-6805bae192908c287ffd0fcad9ece50541db0e46.tar.bz2
dokka-6805bae192908c287ffd0fcad9ece50541db0e46.zip
Workaround top-level java class name not match filename
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r--core/src/test/kotlin/format/HtmlFormatTest.kt4
-rw-r--r--core/src/test/kotlin/model/JavaTest.kt4
2 files changed, 4 insertions, 4 deletions
diff --git a/core/src/test/kotlin/format/HtmlFormatTest.kt b/core/src/test/kotlin/format/HtmlFormatTest.kt
index cbea3209..4fe4f6ab 100644
--- a/core/src/test/kotlin/format/HtmlFormatTest.kt
+++ b/core/src/test/kotlin/format/HtmlFormatTest.kt
@@ -71,8 +71,8 @@ class HtmlFormatTest {
}
@Test fun javaSupertypeLink() {
- verifyJavaHtmlNodes("javaSupertype") { model ->
- model.members.single().members.single { it.name == "C" }.members.filter { it.name == "Bar" }
+ verifyJavaHtmlNodes("JavaSupertype") { model ->
+ model.members.single().members.single { it.name == "JavaSupertype" }.members.filter { it.name == "Bar" }
}
}
diff --git a/core/src/test/kotlin/model/JavaTest.kt b/core/src/test/kotlin/model/JavaTest.kt
index c0e68304..e6c22ee4 100644
--- a/core/src/test/kotlin/model/JavaTest.kt
+++ b/core/src/test/kotlin/model/JavaTest.kt
@@ -110,7 +110,7 @@ public class JavaTest {
}
@Test fun innerClass() {
- verifyJavaPackageMember("testdata/java/innerClass.java") { cls ->
+ verifyJavaPackageMember("testdata/java/InnerClass.java") { cls ->
val innerClass = cls.members(NodeKind.Class).single()
assertEquals("D", innerClass.name)
}
@@ -199,7 +199,7 @@ public class JavaTest {
}
@Test fun inheritorLinks() {
- verifyJavaPackageMember("testdata/java/inheritorLinks.java") { cls ->
+ verifyJavaPackageMember("testdata/java/InheritorLinks.java") { cls ->
val fooClass = cls.members.single { it.name == "Foo" }
val inheritors = fooClass.references(RefKind.Inheritor)
assertEquals(1, inheritors.size)