Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_GetFieldID_12)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetFieldID_12  )

Definition at line 40 of file GetFieldID_12.cpp.

{
  GET_JNI_FOR_TEST

  IMPLEMENT_GetFieldID_METHOD("Test1", "name_char", "C");
  env->SetCharField(obj, fieldID, 'a');
  jchar value = env->GetCharField(obj, fieldID);
  if((fieldID != NULL) &&(value == 'a')){
    return TestResult::PASS("GetFieldID(all right for char) passed");
  }else{
    return TestResult::FAIL("GetFieldID(all right for char) failed");
  }

}

Here is the call graph for this function: