MCPcopy Create free account
hub / github.com/astonbitecode/j4rs / java_hello_world

Function java_hello_world

rust/src/lib.rs:984–1000  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

982
983 #[test]
984 fn java_hello_world() -> errors::Result<()> {
985 let jvm = create_tests_jvm()?;
986
987 let system = jvm.static_class("java.lang.System")?;
988 let _ = jvm
989 .into_chain(system)
990 .field("out")
991 ?
992 .invoke(
993 "println",
994 &[InvocationArg::try_from("Hello World")?],
995 )
996 ?
997 .collect();
998
999 Ok(())
1000 }
1001
1002 #[test]
1003 fn parent_interface_method() -> errors::Result<()> {

Callers

nothing calls this directly

Calls 6

create_tests_jvmFunction · 0.85
static_classMethod · 0.80
collectMethod · 0.80
into_chainMethod · 0.80
invokeMethod · 0.65
fieldMethod · 0.65

Tested by

no test coverage detected