You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On 2.3.0: remotes::install_version("testthat", "2.3.0")
library(rJava)
library(testthat)
.jinit()
.jnew("hello/world", check=TRUE)
#> Error in .jnew("hello/world", check = TRUE): java.lang.ClassNotFoundException
expect_error(.jnew("hello/world", check=TRUE))
#> Error in ._jobjRef_dollar(x[["jobj"]], name): no field, method or inner class called 'trace'
I digged a little deeper, and the reason is most likely that rlang::cnd_entrace used in capture_error tries to access the $trace slot, which does prompt a java Error.
Is there another method intended to test for Exceptions?
The text was updated successfully, but these errors were encountered:
since version 2.3.0, tests that check for java Exceptions fail.
On 2.2.0:
remotes::install_version("testthat", "2.2.0")
Created on 2019-11-08 by the reprex package (v0.3.0)
On 2.3.0:
remotes::install_version("testthat", "2.3.0")
Created on 2019-11-08 by the reprex package (v0.3.0)
I digged a little deeper, and the reason is most likely that
rlang::cnd_entrace
used incapture_error
tries to access the$trace
slot, which does prompt a java Error.Is there another method intended to test for Exceptions?
The text was updated successfully, but these errors were encountered: