aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"])