Back to index

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

Go to the source code of this file.


 JNI_OJIAPITest (JNIEnv_SetStaticByteField_6)

Function Documentation

JNI_OJIAPITest ( JNIEnv_SetStaticByteField_6  )

Definition at line 40 of file SetStaticByteField_6.cpp.


  IMPLEMENT_GetStaticFieldID_METHOD("Test1", "static_name_byte", "B");
  env->SetStaticByteField(clazz, fieldID, (jbyte)-10);
  printf("value = %d\n", (int)env->GetStaticByteField(clazz, fieldID));
  if(env->GetStaticByteField(clazz, fieldID) == -10){
    return TestResult::PASS("SetStaticByteField(all correct, value == -10) set correct value to field");
    return TestResult::FAIL("SetStaticByteField(all correct, value == -10) set incorrect value to field");


Here is the call graph for this function: