Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_GetObjectClass_2)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetObjectClass_2  )

Definition at line 40 of file GetObjectClass_2.cpp.

{
  GET_JNI_FOR_TEST

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

  jclass clazz1 = env->GetObjectClass(NULL);

  if(clazz1 == NULL){
      return TestResult::PASS("GetObjectClass(NULL) return correct value");
  }else{
      return TestResult::FAIL("GetObjectClass(NULL) return incorrect value");
  }


}

Here is the call graph for this function: