Back to index

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

Go to the source code of this file.


 JNI_OJIAPITest (JNIEnv_IsInstanceOf_5)

Function Documentation

JNI_OJIAPITest ( JNIEnv_IsInstanceOf_5  )

Definition at line 40 of file IsInstanceOf_5.cpp.


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

  if(env->IsInstanceOf(NULL, NULL)){
      return TestResult::PASS("IsInstanceOf(NULL, NULL) return correct value");
      return TestResult::FAIL("IsInstanceOf(NULL, NULL) return incorrect value");


Here is the call graph for this function: