summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/kernel/qjnienvironment/tst_qjnienvironment.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/corelib/kernel/qjnienvironment/tst_qjnienvironment.cpp b/tests/auto/corelib/kernel/qjnienvironment/tst_qjnienvironment.cpp
index d47a9ecd57..2cd0b7ea76 100644
--- a/tests/auto/corelib/kernel/qjnienvironment/tst_qjnienvironment.cpp
+++ b/tests/auto/corelib/kernel/qjnienvironment/tst_qjnienvironment.cpp
@@ -71,11 +71,11 @@ void tst_QJniEnvironment::jniEnv()
env->ExceptionClear();
QVERIFY(env->FindClass("java/lang/Object"));
- QVERIFY(!QJniEnvironment::exceptionCheckAndClear(env));
+ QVERIFY(!QJniEnvironment::checkAndClearExceptions(env));
// try to find a nonexistent class
QVERIFY(!env->FindClass("this/doesnt/Exist"));
- QVERIFY(QJniEnvironment::exceptionCheckAndClear(env));
+ QVERIFY(QJniEnvironment::checkAndClearExceptions(env));
// try to find an existing class with QJniEnvironment
QJniEnvironment env;
@@ -86,7 +86,7 @@ void tst_QJniEnvironment::jniEnv()
// clear exception with member function
QVERIFY(!env->FindClass("this/doesnt/Exist"));
- QVERIFY(env.exceptionCheckAndClear());
+ QVERIFY(env.checkAndClearExceptions());
}
// The env does not detach automatically, even if it goes out of scope. The only way it can