Back to index

lightning-sunbird  0.9+nobinonly
Functions
CallStaticBooleanMethod_4.cpp File Reference
#include "JNIEnvTests.h"
#include "CallingStaticMethods.h"

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_CallStaticBooleanMethod_4)

Function Documentation

JNI_OJIAPITest ( JNIEnv_CallStaticBooleanMethod_4  )

Definition at line 41 of file CallStaticBooleanMethod_4.cpp.

{
  GET_JNI_FOR_TEST

  IMPLEMENT_GetStaticMethodID_METHOD("Test1", "Test1_method_bool_static", "(ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z");
  jboolean value = env->CallStaticBooleanMethod(clazz, MethodID, (jboolean)JNI_FALSE, (jbyte)MIN_JBYTE, (jchar)0, (jshort)1, (jint)123, (jlong)20, (jfloat)10., (jdouble)100, (jobject)NULL, (jobject)NULL);
  if(value == JNI_FALSE){
     return TestResult::PASS("CallStaticBooleanMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z) return correct value");
  }else{
     return TestResult::FAIL("CallStaticBooleanMethod for public not inherited method (sig = (ZBCSIJFDLjava/lang/String;[Ljava/lang/String;)Z) return incorrect value");
  }

}

Here is the call graph for this function: