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