()
| 1323 | } |
| 1324 | #[test] |
| 1325 | fn parse_policy_internal_null() { |
| 1326 | let mut env = JVM.attach_current_thread().unwrap(); |
| 1327 | let null_str = JString::from(JObject::null()); |
| 1328 | let result = parse_policy_internal(&mut env, null_str); |
| 1329 | assert!(result.is_ok(), "Expected error on null input"); |
| 1330 | assert!( |
| 1331 | env.exception_check().unwrap(), |
| 1332 | "Expected Java exception due to a null input" |
| 1333 | ); |
| 1334 | env.exception_clear().unwrap(); |
| 1335 | } |
| 1336 | #[test] |
| 1337 | fn parse_policy_template_valid_test() { |
| 1338 | let mut env = JVM.attach_current_thread().unwrap(); |
nothing calls this directly
no test coverage detected