-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
/
testqgsquickmapsettings.cpp
43 lines (37 loc) · 1.55 KB
/
testqgsquickmapsettings.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/***************************************************************************
testqgsquickmapsettings.cpp
--------------------------------------
Date : Nov 2017
Copyright : (C) 2017 by Peter Petrik
Email : zilolv at gmail dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <QObject>
#include <QApplication>
#include "qgsapplication.h"
#include "qgstest.h"
#include "qgis.h"
#include "qgsunittypes.h"
#include "qgsquickmapsettings.h"
class TestQgsQuickMapSettings: public QObject
{
Q_OBJECT
private slots:
void init() {} // will be called before each testfunction is executed.
void cleanup() {} // will be called after every testfunction.
void test_project_existency();
};
void TestQgsQuickMapSettings::test_project_existency()
{
QgsQuickMapSettings *settings = new QgsQuickMapSettings();
QVERIFY( !settings->project() );
delete settings;
}
QGSTEST_MAIN( TestQgsQuickMapSettings )
#include "testqgsquickmapsettings.moc"