Lines Matching refs:exception_class
61 void ExpectException(jclass exception_class) { in ExpectException() argument
64 << mirror::Class::PrettyDescriptor(soa.Decode<mirror::Class>(exception_class)); in ExpectException()
68 EXPECT_TRUE(env_->IsInstanceOf(exception, exception_class)); in ExpectException()
2213 jclass exception_class = env_->FindClass("java/lang/RuntimeException"); in TEST_F() local
2214 ASSERT_TRUE(exception_class != nullptr); in TEST_F()
2215 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class)); in TEST_F()
2235 jclass exception_class = env_->FindClass("java/lang/RuntimeException"); in TEST_F() local
2236 ASSERT_TRUE(exception_class != nullptr); in TEST_F()
2240 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, "hello world")); in TEST_F()
2244 EXPECT_TRUE(env_->IsInstanceOf(thrown_exception, exception_class)); in TEST_F()
2246 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, nullptr)); in TEST_F()
2250 EXPECT_TRUE(env_->IsInstanceOf(thrown_exception, exception_class)); in TEST_F()