jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "junit-framework-TestFailure"))]
__jni_bindgen! {
    /// public class [TestFailure](https://developer.android.com/reference/junit/framework/TestFailure.html)
    ///
    /// Required feature: "junit-framework-TestFailure"
    public class TestFailure ("junit/framework/TestFailure") extends crate::java::lang::Object {

        /// [TestFailure](https://developer.android.com/reference/junit/framework/TestFailure.html#TestFailure(junit.framework.Test,%20java.lang.Throwable))
        ///
        /// Required features: "java-lang-Throwable", "junit-framework-Test"
        #[cfg(any(feature = "all", all(feature = "java-lang-Throwable", feature = "junit-framework-Test")))]
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::junit::framework::Test>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Throwable>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::junit::framework::TestFailure>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestFailure", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljunit/framework/Test;Ljava/lang/Throwable;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestFailure\0", "<init>\0", "(Ljunit/framework/Test;Ljava/lang/Throwable;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [failedTest](https://developer.android.com/reference/junit/framework/TestFailure.html#failedTest())
        ///
        /// Required features: "junit-framework-Test"
        #[cfg(any(feature = "all", all(feature = "junit-framework-Test")))]
        pub fn failedTest<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::junit::framework::Test>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestFailure", java.flags == PUBLIC, .name == "failedTest", .descriptor == "()Ljunit/framework/Test;"
            unsafe {
                let __jni_args = [];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestFailure\0", "failedTest\0", "()Ljunit/framework/Test;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [thrownException](https://developer.android.com/reference/junit/framework/TestFailure.html#thrownException())
        ///
        /// Required features: "java-lang-Throwable"
        #[cfg(any(feature = "all", all(feature = "java-lang-Throwable")))]
        pub fn thrownException<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::Throwable>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestFailure", java.flags == PUBLIC, .name == "thrownException", .descriptor == "()Ljava/lang/Throwable;"
            unsafe {
                let __jni_args = [];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestFailure\0", "thrownException\0", "()Ljava/lang/Throwable;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [toString](https://developer.android.com/reference/junit/framework/TestFailure.html#toString())
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn toString<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestFailure", java.flags == PUBLIC, .name == "toString", .descriptor == "()Ljava/lang/String;"
            unsafe {
                let __jni_args = [];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestFailure\0", "toString\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [trace](https://developer.android.com/reference/junit/framework/TestFailure.html#trace())
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn trace<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestFailure", java.flags == PUBLIC, .name == "trace", .descriptor == "()Ljava/lang/String;"
            unsafe {
                let __jni_args = [];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestFailure\0", "trace\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [exceptionMessage](https://developer.android.com/reference/junit/framework/TestFailure.html#exceptionMessage())
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn exceptionMessage<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestFailure", java.flags == PUBLIC, .name == "exceptionMessage", .descriptor == "()Ljava/lang/String;"
            unsafe {
                let __jni_args = [];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestFailure\0", "exceptionMessage\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isFailure](https://developer.android.com/reference/junit/framework/TestFailure.html#isFailure())
        pub fn isFailure<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestFailure", java.flags == PUBLIC, .name == "isFailure", .descriptor == "()Z"
            unsafe {
                let __jni_args = [];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestFailure\0", "isFailure\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}