Back to index

lightning-sunbird  0.9+nobinonly
GetObjectClass_1.cpp File Reference
#include "JNIEnvTests.h"
#include "ObjectOperations.h"

Go to the source code of this file.


 JNI_OJIAPITest (JNIEnv_GetObjectClass_1)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetObjectClass_1  )

Definition at line 40 of file GetObjectClass_1.cpp.


  jclass clazz  = env->FindClass("Test1");
  jobject obj = env->AllocObject(clazz);

  jclass clazz1 = env->GetObjectClass(obj);

  if(env->IsAssignableFrom(clazz1, clazz)) {
      return TestResult::PASS("GetObjectClass(some object) return correct value");
      return TestResult::FAIL("GetObjectClass(some object) return incorrect value");


Here is the call graph for this function: