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()
2322 jclass exception_class = env_->FindClass("java/lang/RuntimeException"); in TEST_F() local
2323 ASSERT_TRUE(exception_class != nullptr); in TEST_F()
2324 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class)); in TEST_F()
2344 jclass exception_class = env_->FindClass("java/lang/RuntimeException"); in TEST_F() local
2345 ASSERT_TRUE(exception_class != nullptr); in TEST_F()
2349 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, "hello world")); in TEST_F()
2353 EXPECT_TRUE(env_->IsInstanceOf(thrown_exception, exception_class)); in TEST_F()
2355 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, nullptr)); in TEST_F()
2359 EXPECT_TRUE(env_->IsInstanceOf(thrown_exception, exception_class)); in TEST_F()