Lines Matching refs:exception_class
55 void ExpectException(jclass exception_class) { in ExpectException() argument
60 EXPECT_TRUE(env_->IsInstanceOf(exception, exception_class)); in ExpectException()
1554 jclass exception_class = env_->FindClass("java/lang/RuntimeException"); in TEST_F() local
1555 ASSERT_TRUE(exception_class != nullptr); in TEST_F()
1556 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class)); in TEST_F()
1569 jclass exception_class = env_->FindClass("java/lang/RuntimeException"); in TEST_F() local
1570 ASSERT_TRUE(exception_class != nullptr); in TEST_F()
1574 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, "hello world")); in TEST_F()
1578 EXPECT_TRUE(env_->IsInstanceOf(thrown_exception, exception_class)); in TEST_F()
1580 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, nullptr)); in TEST_F()
1584 EXPECT_TRUE(env_->IsInstanceOf(thrown_exception, exception_class)); in TEST_F()