Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_IsAssignableFrom_4)

Function Documentation

JNI_OJIAPITest ( JNIEnv_IsAssignableFrom_4  )

Definition at line 40 of file IsAssignableFrom_4.cpp.

{
  GET_JNI_FOR_TEST

  jclass clazz  = env->FindClass("Test1");
  jclass clazz1 = env->FindClass("Test2");

  if(env->IsAssignableFrom(clazz, clazz) ){
      return TestResult::PASS("IsAssignableFrom(class, same class) return correct value");
  }else{
      return TestResult::FAIL("IsAssignableFrom(class, same class) return incorrect value");
  }



}

Here is the call graph for this function: