Consolidate test class into a single file to make writing tests easier and quicker

git-svn-id: http://svn.osgeo.org/qgis/trunk@5217 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2006-04-08 00:21:49 +00:00
parent 855b3a95d2
commit 531dacbf81
3 changed files with 12 additions and 17 deletions

View File

@ -21,7 +21,7 @@ GLOBALCXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(GDAL_CFLAGS) $(QT_CXXFLAGS) $(P
# Instruction for running the qt4 meta object compiler
#
%.moc.cpp: %.h
%.moc.cpp: %.cpp
$(MOC) -o $@ $<
#

View File

@ -1,8 +1,17 @@
#include <QtTest>
#include <qgsapplication.h>
#include "testqgsapplication.h"
#include <QObject>
#include <QString>
#include <QObject>
//header for class being tested
#include <qgsapplication.h>
class TestQgsApplication: public QObject
{
Q_OBJECT;
public:
private slots:
void authorsFilePath();
};
void TestQgsApplication::authorsFilePath()

View File

@ -1,14 +0,0 @@
#ifndef TESTQGSAPPLICATION_H
#define TESTQGSAPPLICATION_H
#include <QtTest/QtTest>
#include <QObject>
class TestQgsApplication: public QObject
{
Q_OBJECT;
public:
private slots:
void authorsFilePath();
};
#endif