()
| 267 | |
| 268 | #[tokio::test(flavor = "multi_thread", worker_threads = 1)] |
| 269 | async fn invoke_async_error_before_executing_async() -> errors::Result<()> { |
| 270 | let s_test = "j4rs_rust"; |
| 271 | let jvm = create_tests_jvm()?; |
| 272 | let my_test = jvm.create_instance("org.astonbitecode.j4rs.tests.MyTest", InvocationArg::empty())?; |
| 273 | let instance_result = jvm |
| 274 | .invoke_async(&my_test, "echo", &[InvocationArg::try_from(s_test)?]) |
| 275 | .await; |
| 276 | assert!(instance_result.is_err()); |
| 277 | Ok(()) |
| 278 | } |
| 279 | |
| 280 | #[tokio::test(flavor = "multi_thread", worker_threads = 2)] |
| 281 | async fn invoke_void_future() -> errors::Result<()> { |
nothing calls this directly
no test coverage detected