Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_NewObject_2)

Function Documentation

JNI_OJIAPITest ( JNIEnv_NewObject_2  )

Definition at line 40 of file NewObject_2.cpp.

{
  GET_JNI_FOR_TEST

  jclass clazz = env->FindClass("Test4");

  jobject obj_new = env->NewObject(NULL, (jmethodID)1000, 555);
  if(obj_new != NULL) {
      return TestResult::FAIL("NewObject for clazz = NULL and invalid constructor ID");
  }else{
      return TestResult::PASS("NewObject for clazz = NULL and invalid constructor ID");
  }
     

  return TestResult::PASS("");

}

Here is the call graph for this function: