Home | History | Annotate | Download | only in runtime

Lines Matching full:exception_class

791 #define EXPECT_EXCEPTION(exception_class) \
797 EXPECT_TRUE(env_->IsInstanceOf(exception, exception_class)); \
1808 jclass exception_class = env_->FindClass("java/lang/RuntimeException");
1809 ASSERT_TRUE(exception_class != NULL);
1810 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class));
1823 jclass exception_class = env_->FindClass("java/lang/RuntimeException");
1824 ASSERT_TRUE(exception_class != NULL);
1828 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, "hello world"));
1832 EXPECT_TRUE(env_->IsInstanceOf(thrown_exception, exception_class));
1834 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, NULL));
1838 EXPECT_TRUE(env_->IsInstanceOf(thrown_exception, exception_class));