()
| 868 | |
| 869 | #[test] |
| 870 | fn variadic_long_primitive_method() -> errors::Result<()> { |
| 871 | let jvm = create_tests_jvm()?; |
| 872 | let values: Vec<i64> = vec![1, 2, 3]; |
| 873 | let jargs: Vec<_> = values |
| 874 | .into_iter() |
| 875 | .map(|v| { |
| 876 | InvocationArg::try_from(v) |
| 877 | .unwrap() |
| 878 | .into_primitive() |
| 879 | .unwrap() |
| 880 | }) |
| 881 | .collect(); |
| 882 | |
| 883 | let arr_instance = jvm.create_java_array("long", &jargs)?; |
| 884 | |
| 885 | let _ = jvm |
| 886 | .invoke_static( |
| 887 | "org.astonbitecode.j4rs.tests.MyTest", |
| 888 | "useLongPrimitivesArray", |
| 889 | &[InvocationArg::from(arr_instance)], |
| 890 | ) |
| 891 | ?; |
| 892 | |
| 893 | Ok(()) |
| 894 | } |
| 895 | |
| 896 | #[test] |
| 897 | fn instance_invocation_chain_and_collect() -> errors::Result<()> { |
nothing calls this directly
no test coverage detected