46 lines
1010 B
C++
Executable File
46 lines
1010 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* UnitTests for ExerciseManagement (EXM)
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hanna E. Rathje, SLSE, 2015-08-20
|
|
*/
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QSignalSpy>
|
|
#include <ServiceManagement/scm_dts_types.h>
|
|
|
|
namespace NGL
|
|
{
|
|
class INGLLogger;
|
|
}
|
|
|
|
class DataTopicTests;
|
|
|
|
class DataTopicTestsMain : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
DataTopicTestsMain();
|
|
|
|
private Q_SLOTS:
|
|
void initTestCase();
|
|
void publishServiceInformationTestCase();
|
|
void subscribeServiceInformationTestCase();
|
|
void publishGroupInformationTestCase();
|
|
void subscribeGroupInformationTestCase();
|
|
void cleanupTestCase();
|
|
|
|
protected:
|
|
|
|
private:
|
|
ServiceManagement::ServiceInformation m_sentServiceInformationData;
|
|
ServiceManagement::GroupInformation m_sentGroupInformationData;
|
|
QSignalSpy *m_serviceInformationDataArrivedSpy = nullptr;
|
|
QSignalSpy *m_groupInformationDataArrivedSpy = nullptr;
|
|
DataTopicTests *m_dtTest = nullptr;
|
|
NGL::INGLLogger &m_logger;
|
|
};
|