00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef NATIVETESTREGISTRY_H
00010 #define NATIVETESTREGISTRY_H
00011
00012 #ifdef JAVAQX_TEST
00013
00014 #include "NativeTestFactory.h"
00015
00016
00017
00018
00019
00020 typedef QList<AbstractNativeTestFactory *> NativeTestFactories;
00021 typedef QMap<QString, NativeTestFactories *> NativeTestModules;
00022
00029 class JAVAQX_EXPORT NativeTestRegistry
00030 {
00031 private:
00032 NativeTestRegistry();
00033 ~NativeTestRegistry();
00034 public:
00035 static bool registerTestFactory(const QString &module,
00036 AbstractNativeTestFactory *testFactory);
00037 static jobjectArray getTestModules(JNIEnv *env);
00038 static jobjectArray getTestCases(JNIEnv *env, jstring testModule);
00039 static jlong createTestCase(JNIEnv *env, jstring testModule,
00040 jstring testCase);
00041 private:
00042 static NativeTestModules *modules;
00043 };
00044
00045 #endif // JAVAQX_TEST
00046
00047 #endif // NATIVETESTREGISTRY_H
00048
00049
00050
00051
00052
00053
00054
00055