62 lines
1.1 KiB
C++
Executable File
62 lines
1.1 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Unittest
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LtsElevation/lts_elevation_manager.h>
|
|
|
|
#include <ElevationMap/elevation_map_manager.h>
|
|
|
|
#include <QCoreApplication>
|
|
#include <QtTest/QTest>
|
|
#include <NGLLogger/INGLLogger.h>
|
|
|
|
|
|
using LOGGER_T = NGL::INGLLogger&;
|
|
|
|
|
|
|
|
|
|
class UnitTestElevation : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
UnitTestElevation();
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
//
|
|
// TestCases
|
|
//
|
|
|
|
// void initTestCase_data(); // will be called to create a global test data table.
|
|
void initTestCase(); // will be called before the first test function is executed.
|
|
|
|
void init(); // will be called before each test function is executed.
|
|
// void cleanup(); // will be called after each test function is executed.
|
|
|
|
|
|
|
|
void test_elevation_data();
|
|
void test_elevation();
|
|
|
|
void test_elevation_isCovered();
|
|
void test_elevation_defaultValue();
|
|
|
|
void test_lineOfSightCalculation_data();
|
|
void test_lineOfSightCalculation();
|
|
|
|
|
|
// void cleanup();
|
|
|
|
private:
|
|
LOGGER_T m_logger;
|
|
};
|