()
| 1534 | } |
| 1535 | #[test] |
| 1536 | fn to_json_internal_null() { |
| 1537 | let mut env = JVM.attach_current_thread().unwrap(); |
| 1538 | let null_str = JString::from(JObject::null()); |
| 1539 | let result = to_json_internal(&mut env, null_str); |
| 1540 | assert!(result.is_ok(), "Expected error on null input"); |
| 1541 | assert!( |
| 1542 | env.exception_check().unwrap(), |
| 1543 | "Expected Java exception due to a null input" |
| 1544 | ); |
| 1545 | env.exception_clear().unwrap(); |
| 1546 | } |
| 1547 | #[test] |
| 1548 | fn template_effect_jni_internal_permit_test() { |
| 1549 | let mut env = JVM.attach_current_thread().unwrap(); |
nothing calls this directly
no test coverage detected