/*=============================================================================

  Library: CTK

  Copyright (c) German Cancer Research Center,
    Division of Medical and Biological Informatics

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

=============================================================================*/


#ifndef CTKCONFIGURATIONADMINTESTSUITE_P_H
#define CTKCONFIGURATIONADMINTESTSUITE_P_H

#include <QObject>

#include <ctkServiceReference.h>
#include <ctkTestSuiteInterface.h>

class ctkPluginContext;
struct ctkConfigurationAdmin;

class ctkConfigurationAdminTestSuite : public QObject,
    public ctkTestSuiteInterface
{
  Q_OBJECT
  Q_INTERFACES(ctkTestSuiteInterface)

public:

  ctkConfigurationAdminTestSuite(ctkPluginContext* pc, long cmPluginId);

private Q_SLOTS:

  void init();
  void cleanup();

  void testCreateConfig();
  void testCreateConfigNullPid();
  void testCreateConfigWithLocation();
  void testCreateConfigNullPidWithLocation();
  void testCreateConfigWithAndWithoutLocation();
  void testCreateConfigWithAndWithoutNullLocation();
  void testCreateFactoryConfig();
  void testCreateFactoryConfigNullPid();
  void testCreateFactoryConfigWithLocation();
  void testCreateFactoryConfigNullPidWithLocation();
  void testCreateFactoryConfigWithAndWithoutLocation();
  void testCreateFactoryConfigWithAndWithoutNullLocation();
  void testListConfiguration();
  void testListConfigurationWithBoundLocation();
  void testListFactoryConfiguration();
  void testListFactoryConfigurationWithBoundLocation();
  void testListConfigurationNull();
  void testPersistentConfig();
  void testPersistentFactoryConfig();

private:

  ctkPluginContext* context;
  long cmPluginId;
  ctkConfigurationAdmin* cm;
  ctkServiceReference reference;
};

#endif // CTKCONFIGURATIONADMINTESTSUITE_P_H
