Skip to content

Commit

Permalink
[AuthZ] Simplify debug message for missing field/methond in ReflectUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
yaooqinn committed Oct 23, 2023
1 parent 9f94c62 commit b7a7fbb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ class ReflectUtilsSuite extends AnyFunSuite {
}

test("test invokeAs method not found exception") {
interceptEquals[RuntimeException] {
interceptEquals[NoSuchMethodException] {
invokeAs[String](
ObjectA,
"methodNotExists",
(classOf[String], "arg1"),
(classOf[String], "arg2"))
}("org.apache.kyuubi.util.reflect.ObjectA$ does not have methodNotExists method or" +
}("class org.apache.kyuubi.util.reflect.ObjectA$ does not have methodNotExists method or" +
" incorrect arguments")
}
}
Expand Down

0 comments on commit b7a7fbb

Please sign in to comment.