()
| 1577 | |
| 1578 | #[test] |
| 1579 | fn template_effect_jni_internal_null() { |
| 1580 | let mut env = JVM.attach_current_thread().unwrap(); |
| 1581 | let null_obj = JObject::null(); |
| 1582 | let result = template_effect_jni_internal(&mut env, null_obj.into()); |
| 1583 | assert!(result.is_ok(), "Expected error on null input"); |
| 1584 | assert!( |
| 1585 | env.exception_check().unwrap(), |
| 1586 | "Expected Java exception due to a null input" |
| 1587 | ); |
| 1588 | env.exception_clear().unwrap(); |
| 1589 | } |
| 1590 | } |
| 1591 | mod map_tests { |
| 1592 | use super::*; |
nothing calls this directly
no test coverage detected