ctkConfigurationAdminTestSuite_p.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*=============================================================================
  2. Library: CTK
  3. Copyright (c) German Cancer Research Center,
  4. Division of Medical and Biological Informatics
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. =============================================================================*/
  15. #ifndef CTKCONFIGURATIONADMINTESTSUITE_P_H
  16. #define CTKCONFIGURATIONADMINTESTSUITE_P_H
  17. #include <QObject>
  18. #include <ctkServiceReference.h>
  19. #include <ctkTestSuiteInterface.h>
  20. class ctkPluginContext;
  21. class ctkConfigurationAdmin;
  22. class ctkConfigurationAdminTestSuite : public QObject,
  23. public ctkTestSuiteInterface
  24. {
  25. Q_OBJECT
  26. Q_INTERFACES(ctkTestSuiteInterface)
  27. public:
  28. ctkConfigurationAdminTestSuite(ctkPluginContext* pc, long cmPluginId);
  29. private slots:
  30. void init();
  31. void cleanup();
  32. void testCreateConfig();
  33. void testCreateConfigNullPid();
  34. void testCreateConfigWithLocation();
  35. void testCreateConfigNullPidWithLocation();
  36. void testCreateConfigWithAndWithoutLocation();
  37. void testCreateConfigWithAndWithoutNullLocation();
  38. void testCreateFactoryConfig();
  39. void testCreateFactoryConfigNullPid();
  40. void testCreateFactoryConfigWithLocation();
  41. void testCreateFactoryConfigNullPidWithLocation();
  42. void testCreateFactoryConfigWithAndWithoutLocation();
  43. void testCreateFactoryConfigWithAndWithoutNullLocation();
  44. void testListConfiguration();
  45. void testListConfigurationWithBoundLocation();
  46. void testListFactoryConfiguration();
  47. void testListFactoryConfigurationWithBoundLocation();
  48. void testListConfigurationNull();
  49. void testPersistentConfig();
  50. void testPersistentFactoryConfig();
  51. private:
  52. ctkPluginContext* context;
  53. long cmPluginId;
  54. ctkConfigurationAdmin* cm;
  55. ctkServiceReference reference;
  56. };
  57. #endif // CTKCONFIGURATIONADMINTESTSUITE_P_H