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

Function template_effect_jni_internal_null

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

Source from the content-addressed store, hash-verified

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::*;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected