Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_NewObject_5)

Function Documentation

JNI_OJIAPITest ( JNIEnv_NewObject_5  )

Definition at line 40 of file NewObject_5.cpp.

{
  GET_JNI_FOR_TEST

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

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

  return TestResult::PASS("");

}

Here is the call graph for this function: