Back to index

lightning-sunbird  0.9+nobinonly
SetStaticIntField_5.cpp File Reference
#include "JNIEnvTests.h"
#include "AccessingStaticFields.h"

Go to the source code of this file.


 JNI_OJIAPITest (JNIEnv_SetStaticIntField_5)

Function Documentation

JNI_OJIAPITest ( JNIEnv_SetStaticIntField_5  )

Definition at line 40 of file SetStaticIntField_5.cpp.


  IMPLEMENT_GetStaticFieldID_METHOD("Test1", "static_name_int", "I");
  env->SetStaticIntField(clazz, fieldID, 1);
  printf("value = %d\n", (int)env->GetStaticIntField(clazz, fieldID));
  if(env->GetStaticIntField(clazz, fieldID) == 1){
     return TestResult::PASS("SetStaticIntField(all right, value == 1) return correct value");
     return TestResult::FAIL("SetStaticIntField(all right, value == 1) return incorrect value");


Here is the call graph for this function: