aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/gradle
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-02 10:19:23 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-02 12:48:53 +0200
commit76132da3437873f5483b8a7ce03b1028fa37d139 (patch)
tree0c192f5c0681b384eafa7895925653e63cd58807 /integration-tests/gradle
parent46226ccffb81694a06b0d424a3aa35902644872c (diff)
downloaddokka-76132da3437873f5483b8a7ce03b1028fa37d139.tar.gz
dokka-76132da3437873f5483b8a7ce03b1028fa37d139.tar.bz2
dokka-76132da3437873f5483b8a7ce03b1028fa37d139.zip
BasicGradleIntegrationTest: Add java source
Diffstat (limited to 'integration-tests/gradle')
-rw-r--r--integration-tests/gradle/projects/it-basic/src/main/java/it/basic/java/SampleJavaClass.java17
-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 ->