Back to index

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

Go to the source code of this file.


 JNI_OJIAPITest (JNIEnv_IsSameObject_1)

Function Documentation

JNI_OJIAPITest ( JNIEnv_IsSameObject_1  )

Definition at line 40 of file IsSameObject_1.cpp.


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

  if(env->IsSameObject(obj1, obj1) == JNI_TRUE){
      return TestResult::PASS("IsSameObject(obj, obj) return correct value");
      return TestResult::FAIL("IsSameObject(obj, obj) return incorrect value");


Here is the call graph for this function: