aboutsummaryrefslogtreecommitdiff
path: root/plugins/javadoc/src/test/kotlin
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-06-30 13:49:20 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-01 09:43:03 +0200
commit0b2071d7a4483a854ed0b3ee63f7bb81807014bf (patch)
tree22819a3b27869fe22cce691a26e6f3900c908f47 /plugins/javadoc/src/test/kotlin
parent4f5e54528427451de7741d8e5cdefaf550c2f36c (diff)
downloaddokka-0b2071d7a4483a854ed0b3ee63f7bb81807014bf.tar.gz
dokka-0b2071d7a4483a854ed0b3ee63f7bb81807014bf.tar.bz2
dokka-0b2071d7a4483a854ed0b3ee63f7bb81807014bf.zip
JavadocClasslikeTemplateMapTest: Fix `empty class` test
Diffstat (limited to 'plugins/javadoc/src/test/kotlin')
-rw-r--r--plugins/javadoc/src/test/kotlin/javadoc/JavadocClasslikeTemplateMapTest.kt11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/javadoc/src/test/kotlin/javadoc/JavadocClasslikeTemplateMapTest.kt b/plugins/javadoc/src/test/kotlin/javadoc/JavadocClasslikeTemplateMapTest.kt
index 9e18c921..0f95894b 100644
--- a/plugins/javadoc/src/test/kotlin/javadoc/JavadocClasslikeTemplateMapTest.kt
+++ b/plugins/javadoc/src/test/kotlin/javadoc/JavadocClasslikeTemplateMapTest.kt
@@ -8,14 +8,13 @@ import testApi.utils.assertIsInstance
internal class JavadocClasslikeTemplateMapTest : AbstractJavadocTemplateMapTest() {
- @Disabled("To be fixed")
@Test
fun `empty class`() {
dualTestTemplateMapInline(
kotlin =
"""
/src/source0.kt
- package com.test.package
+ package com.test.package0
/**
* Documentation for TestClass
*/
@@ -23,18 +22,18 @@ internal class JavadocClasslikeTemplateMapTest : AbstractJavadocTemplateMapTest(
""",
java =
"""
- /src/com/test/package/TestClass.java
- package com.test.package;
+ /src/com/test/package0/TestClass.java
+ package com.test.package0;
/**
* Documentation for TestClass
*/
- public class TestClass {}
+ public final class TestClass {}
"""
) {
val map = singlePageOfType<JavadocClasslikePageNode>().templateMap
assertEquals("TestClass", map["name"])
assertEquals("TestClass", map["title"])
- assertEquals("com.test.package", map["packageName"])
+ assertEquals("com.test.package0", map["packageName"])
assertEquals("Documentation for TestClass", map["classlikeDocumentation"])
assertEquals("Documentation for TestClass", map["subtitle"])
assertEquals("public final class <a href=TestClass.html>TestClass</a>", map["signature"])