()
| 250 | |
| 251 | #[tokio::test(flavor = "multi_thread", worker_threads = 1)] |
| 252 | async fn invoke_static_async() -> errors::Result<()> { |
| 253 | let s_test = "j4rs_rust"; |
| 254 | let jvm = create_tests_jvm()?; |
| 255 | let my_test = jvm.static_class("org.astonbitecode.j4rs.tests.MyTest")?; |
| 256 | let instance = jvm |
| 257 | .invoke_async( |
| 258 | &my_test, |
| 259 | "getErrorWithFutureStatic", |
| 260 | &[InvocationArg::try_from(s_test)?], |
| 261 | ) |
| 262 | .await?; |
| 263 | let string: String = jvm.to_rust(instance)?; |
| 264 | assert_eq!(s_test, string); |
| 265 | Ok(()) |
| 266 | } |
| 267 | |
| 268 | #[tokio::test(flavor = "multi_thread", worker_threads = 1)] |
| 269 | async fn invoke_async_error_before_executing_async() -> errors::Result<()> { |
nothing calls this directly
no test coverage detected