Back to index

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

Go to the source code of this file.


 JNI_OJIAPITest (JNIEnv_AllocObject_1)

Function Documentation

JNI_OJIAPITest ( JNIEnv_AllocObject_1  )

Definition at line 40 of file AllocObject_1.cpp.


  jclass clazz  = env->FindClass("Test1");
  jobject obj = env->AllocObject(NULL);
  printf("AllocObject passed");
  if(obj == NULL){
    return TestResult::PASS("AllocObject(NULL) return correct value - NULL");
    return TestResult::FAIL("AllocObject(NULL) do not return correct value - NULL");

Here is the call graph for this function: