MCPcopy Create free account
hub / github.com/cedar-policy/cedar-java / policy_effect_jni_internal_null

Function policy_effect_jni_internal_null

CedarJavaFFI/src/interface.rs:1181–1191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected