67 lines
1008 B
C++
Executable File
67 lines
1008 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Unittest
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QCoreApplication>
|
|
#include <QtTest/QTest>
|
|
|
|
#include <Common/situation_map_logging.h>
|
|
|
|
|
|
|
|
class CheckSignal : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
bool isConnected();
|
|
|
|
signals:
|
|
void mySignal();
|
|
}; // CheckSignal
|
|
|
|
|
|
|
|
class GeoModelUnitTest : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
GeoModelUnitTest();
|
|
~GeoModelUnitTest() = default;
|
|
|
|
private:
|
|
|
|
SituationMap::LOGGER_T m_logger;
|
|
|
|
private Q_SLOTS:
|
|
|
|
void init();
|
|
|
|
void checkSignals1();
|
|
void checkSignals2();
|
|
void checkCoordinatePrecision();
|
|
void createModelWithLine();
|
|
void createModelWithGroup();
|
|
void createAndDeletePrimitives();
|
|
void createAndDeleteGroups();
|
|
void checkUndo();
|
|
void checkMatrixTransform();
|
|
void checkMerge();
|
|
void checkDictionarySymbol();
|
|
|
|
void checkPixelTextBoxData();
|
|
void checkPixelTextBoxDataCont();
|
|
void checkMetaData();
|
|
|
|
|
|
}; // GeoModelUnitTest
|
|
|