diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-06-30 13:49:20 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-07-01 09:43:03 +0200 |
commit | 0b2071d7a4483a854ed0b3ee63f7bb81807014bf (patch) | |
tree | 22819a3b27869fe22cce691a26e6f3900c908f47 /plugins/javadoc/src | |
parent | 4f5e54528427451de7741d8e5cdefaf550c2f36c (diff) | |
download | dokka-0b2071d7a4483a854ed0b3ee63f7bb81807014bf.tar.gz dokka-0b2071d7a4483a854ed0b3ee63f7bb81807014bf.tar.bz2 dokka-0b2071d7a4483a854ed0b3ee63f7bb81807014bf.zip |
JavadocClasslikeTemplateMapTest: Fix `empty class` test
Diffstat (limited to 'plugins/javadoc/src')
-rw-r--r-- | plugins/javadoc/src/test/kotlin/javadoc/JavadocClasslikeTemplateMapTest.kt | 11 |
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"]) |