Back to index

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

Go to the source code of this file.


 JNI_OJIAPITest (JNIEnv_IsInstanceOf_1)

Function Documentation

JNI_OJIAPITest ( JNIEnv_IsInstanceOf_1  )

Definition at line 40 of file IsInstanceOf_1.cpp.


  jclass clazz1 = env->FindClass("Test1");
  jclass clazz2 = env->FindClass("Test2");
  jobject obj1 = env->AllocObject(clazz1);
  jobject obj2 = env->AllocObject(clazz2);

  if(env->IsInstanceOf(obj1, clazz1)){
      return TestResult::PASS("IsInstanceOf(some obj, its class) return correct value");
      return TestResult::FAIL("IsInstanceOf(some obj, its class) return incorrect value");


Here is the call graph for this function: