aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin
diff options
context:
space:
mode:
authorvmishenev <vad-mishenev@yandex.ru>2021-11-12 13:55:11 +0300
committerGitHub <noreply@github.com>2021-11-12 13:55:11 +0300
commit0303fa827f9fea9c11fefbce1045536183ccd688 (patch)
tree59b94b76abeb6d7949694e02b51e1c4ba2a0fda8 /plugins/base/src/test/kotlin
parent4a1b8a981389a0459284ba62aa5d00cc0d44e454 (diff)
downloaddokka-0303fa827f9fea9c11fefbce1045536183ccd688.tar.gz
dokka-0303fa827f9fea9c11fefbce1045536183ccd688.tar.bz2
dokka-0303fa827f9fea9c11fefbce1045536183ccd688.zip
Store checked exceptions into `ExtraProperties` (#2222)
Diffstat (limited to 'plugins/base/src/test/kotlin')
-rw-r--r--plugins/base/src/test/kotlin/model/JavaTest.kt21
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/base/src/test/kotlin/model/JavaTest.kt b/plugins/base/src/test/kotlin/model/JavaTest.kt
index 991b48ef..e473b352 100644
--- a/plugins/base/src/test/kotlin/model/JavaTest.kt
+++ b/plugins/base/src/test/kotlin/model/JavaTest.kt
@@ -251,6 +251,27 @@ class JavaTest : AbstractModelTest("/src/main/kotlin/java/Test.java", "java") {
}
@Test
+ fun throwsList() {
+ inlineModelTest(
+ """
+ |class C {
+ | public void foo() throws java.io.IOException, ArithmeticException {}
+ |}
+ """, configuration = configuration
+ ) {
+ with((this / "java" / "C" / "foo").cast<DFunction>()) {
+ with(extra[CheckedExceptions]?.exceptions?.entries?.single()?.value.assertNotNull("CheckedExceptions")) {
+ this counts 2
+ first().packageName equals "java.io"
+ first().classNames equals "IOException"
+ get(1).packageName equals "java.lang"
+ get(1).classNames equals "ArithmeticException"
+ }
+ }
+ }
+ }
+
+ @Test
fun annotatedAnnotation() {
inlineModelTest(
"""