diff options
Diffstat (limited to 'integration-tests')
-rw-r--r-- | integration-tests/gradle/projects/it-basic/src/main/java/it/basic/java/SampleJavaClass.java | 17 | ||||
-rw-r--r-- | integration-tests/gradle/src/test/kotlin/org/jetbrains/dokka/it/gradle/BasicGradleIntegrationTest.kt (renamed from integration-tests/gradle/src/test/kotlin/org/jetbrains/dokka/it/gradle/BasicTest.kt) | 7 |
2 files changed, 22 insertions, 2 deletions
diff --git a/integration-tests/gradle/projects/it-basic/src/main/java/it/basic/java/SampleJavaClass.java b/integration-tests/gradle/projects/it-basic/src/main/java/it/basic/java/SampleJavaClass.java new file mode 100644 index 00000000..23b0202c --- /dev/null +++ b/integration-tests/gradle/projects/it-basic/src/main/java/it/basic/java/SampleJavaClass.java @@ -0,0 +1,17 @@ +package it.basic.java; + +import it.basic.PublicClass; + +/** + * This class is, unlike {@link PublicClass}, written in Java + */ +@SuppressWarnings("unused") +public class SampleJavaClass { + + /** + * @return Empty instance of {@link PublicClass} + */ + public PublicClass publicDocumentedFunction() { + return new PublicClass(); + } +} diff --git a/integration-tests/gradle/src/test/kotlin/org/jetbrains/dokka/it/gradle/BasicTest.kt b/integration-tests/gradle/src/test/kotlin/org/jetbrains/dokka/it/gradle/BasicGradleIntegrationTest.kt index ba6da4f9..b697f2a1 100644 --- a/integration-tests/gradle/src/test/kotlin/org/jetbrains/dokka/it/gradle/BasicTest.kt +++ b/integration-tests/gradle/src/test/kotlin/org/jetbrains/dokka/it/gradle/BasicGradleIntegrationTest.kt @@ -4,7 +4,7 @@ import org.gradle.testkit.runner.TaskOutcome import java.io.File import kotlin.test.* -class BasicTest : AbstractDefaultVersionsGradleIntegrationTest() { +class BasicGradleIntegrationTest : AbstractDefaultVersionsGradleIntegrationTest() { @BeforeTest fun prepareProjectFiles() { @@ -46,11 +46,14 @@ class BasicTest : AbstractDefaultVersionsGradleIntegrationTest() { assertTrue(moduleIndexHtml.isFile, "Missing module index.html") val modulePackageDir = File(moduleOutputDir, "it.basic") - assertTrue(modulePackageDir.isDirectory, "Missing module package directory") + assertTrue(modulePackageDir.isDirectory, "Missing it.basic package directory") val modulePackageIndexHtml = File(modulePackageDir, "index.html") assertTrue(modulePackageIndexHtml.isFile, "Missing module package index.html") + val moduleJavaPackageDir = File(moduleOutputDir, "it.basic.java") + assertTrue(moduleJavaPackageDir.isDirectory, "Missing it.basic.java package directory") + dokkaOutputDir.walkTopDown() .filter { file -> file.extension == "html" } .forEach { file -> |