[][src]Crate jerk_test

jerk-test: Java Embedding Rust Kit - Unit Testing

GitHub unsafe: yes rust: 1.36.0+ License

A library to test embedded Java alongside a Rust library/application. This is not an official project of Google, Oracle, Sun Microsystems, or anyone else.

Quick Start

Add the following to your executable's Cargo.toml:

[dev-dependencies]
jerk-test = "0.1"

TODO: Finish example

License

Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Enums

JavaTestError

Functions

run_test

Execute a Java unit test. The method must be static, return void, and take no arguments.

test_thread_env

Get a handle to the Java environment for the current thread, attaching if one doesn't already exist.

test_vm

Get a handle to the current Java VM, or create one if it doesn't already exist.

Type Definitions

Result