Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_NewObject_4)

Function Documentation

JNI_OJIAPITest ( JNIEnv_NewObject_4  )

Definition at line 40 of file NewObject_4.cpp.

{
  GET_JNI_FOR_TEST

  IMPLEMENT_GetMethodID_METHOD("Test1", "Get_int_field", "()I");
  
  jobject obj_new = env->NewObject(clazz, MethodID, 555);
  if(obj_new != NULL){
     return TestResult::FAIL("NewObject with legal class and illegal constructor ID");
  }else{
     return TestResult::PASS("NewObject with legal class and illegal constructor ID");
  }


  return TestResult::PASS("");

}

Here is the call graph for this function: