Lines Matching refs:exception_class
62 void ExpectException(jclass exception_class) { in ExpectException() argument
65 << mirror::Class::PrettyDescriptor(soa.Decode<mirror::Class>(exception_class)); in ExpectException()
69 EXPECT_TRUE(env_->IsInstanceOf(exception, exception_class)); in ExpectException()
2330 jclass exception_class = env_->FindClass("java/lang/RuntimeException"); in TEST_F() local
2331 ASSERT_TRUE(exception_class != nullptr); in TEST_F()
2332 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class)); in TEST_F()
2352 jclass exception_class = env_->FindClass("java/lang/RuntimeException"); in TEST_F() local
2353 ASSERT_TRUE(exception_class != nullptr); in TEST_F()
2357 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, "hello world")); in TEST_F()
2361 EXPECT_TRUE(env_->IsInstanceOf(thrown_exception, exception_class)); in TEST_F()
2363 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, nullptr)); in TEST_F()
2367 EXPECT_TRUE(env_->IsInstanceOf(thrown_exception, exception_class)); in TEST_F()