Back to index

lightning-sunbird  0.9+nobinonly
GetFieldID_13.cpp File Reference
#include "JNIEnvTests.h"
#include "AccessingFields.h"

Go to the source code of this file.


 JNI_OJIAPITest (JNIEnv_GetFieldID_13)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetFieldID_13  )

Definition at line 40 of file GetFieldID_13.cpp.


  IMPLEMENT_GetFieldID_METHOD("Test1", "name_bool", "Z");
  env->SetBooleanField(obj, fieldID, JNI_TRUE);
  jboolean value = env->GetBooleanField(obj, fieldID);
  if((fieldID != NULL) &&(value == JNI_TRUE)){
    return TestResult::PASS("GetFieldID(all right for boolean) passed");
    return TestResult::FAIL("GetFieldID(all right for boolean) failed");


Here is the call graph for this function: