()
| 1179 | } |
| 1180 | #[test] |
| 1181 | fn policy_effect_jni_internal_null() { |
| 1182 | let mut env = JVM.attach_current_thread().unwrap(); |
| 1183 | let null_obj = JObject::null(); |
| 1184 | let result = policy_effect_jni_internal(&mut env, null_obj.into()); |
| 1185 | assert!(result.is_ok(), "Expected error on null input"); |
| 1186 | assert!( |
| 1187 | env.exception_check().unwrap(), |
| 1188 | "Expected Java exception due to a null input" |
| 1189 | ); |
| 1190 | env.exception_clear().unwrap(); |
| 1191 | } |
| 1192 | |
| 1193 | #[track_caller] |
| 1194 | fn assert_id_annotation_eq( |
nothing calls this directly
no test coverage detected