-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Java file extension spelling error and add a test (#2604)
Co-authored-by: nfl <[email protected]>
- Loading branch information
1 parent
732f8aa
commit a7c3113
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package filter | ||
|
||
import org.jetbrains.dokka.base.testApi.testRunner.BaseAbstractTest | ||
import org.junit.jupiter.api.Assertions | ||
import org.junit.jupiter.api.Test | ||
import kotlin.test.assertEquals | ||
|
||
class JavaFileFilterTest : BaseAbstractTest() { | ||
@Test | ||
fun `java file should be included`() { | ||
val configuration = dokkaConfiguration { | ||
sourceSets { | ||
sourceSet { | ||
skipEmptyPackages = false | ||
sourceRoots = listOf("src/main/java/basic/Test.java") | ||
} | ||
} | ||
} | ||
|
||
testInline( | ||
""" | ||
|/src/main/java/basic/Test.java | ||
|package example; | ||
| | ||
| | ||
| | ||
""".trimMargin(), | ||
configuration | ||
) { | ||
preMergeDocumentablesTransformationStage = { | ||
Assertions.assertTrue( | ||
it.first().packages.isNotEmpty() | ||
) | ||
} | ||
} | ||
} | ||
} |