()
| 1001 | |
| 1002 | #[test] |
| 1003 | fn parent_interface_method() -> errors::Result<()> { |
| 1004 | let jvm = create_tests_jvm()?; |
| 1005 | let instance = jvm |
| 1006 | .create_instance("org.astonbitecode.j4rs.tests.MyTest", InvocationArg::empty()) |
| 1007 | ?; |
| 1008 | |
| 1009 | let size: isize = jvm |
| 1010 | .into_chain(instance) |
| 1011 | .invoke("getMap", InvocationArg::empty()) |
| 1012 | ? |
| 1013 | .cast("java.util.Map") |
| 1014 | ? |
| 1015 | .invoke("size", InvocationArg::empty()) |
| 1016 | ? |
| 1017 | .to_rust() |
| 1018 | ?; |
| 1019 | |
| 1020 | assert!(size == 2); |
| 1021 | |
| 1022 | Ok(()) |
| 1023 | } |
| 1024 | |
| 1025 | #[test] |
| 1026 | fn invoke_generic_method() -> errors::Result<()> { |
nothing calls this directly
no test coverage detected