()
| 43 | |
| 44 | #[test] |
| 45 | fn test_byte_array_to_vec() { |
| 46 | test_utils::JVM_ENV.with(|env| { |
| 47 | let obj = env.new_byte_array(5).unwrap(); |
| 48 | env.set_byte_array_region(obj, 0, &[1, 2, 3, 4, 5]).unwrap(); |
| 49 | |
| 50 | let vec = super::byte_array_to_vec(env, obj).unwrap(); |
| 51 | assert_eq!(vec, vec![1, 2, 3, 4, 5]); |
| 52 | }); |
| 53 | } |
| 54 | } |
nothing calls this directly
no test coverage detected