- removed completed TODO items

- now catches expected exceptions for not finding map extents since there
  aren't going to be any in the test simulation


git-svn-id: http://svn.osgeo.org/qgis/trunk@3197 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mcoletti 2005-04-22 22:34:10 +00:00
parent 7d8aedd8db
commit 3f519be7fc
2 changed files with 14 additions and 5 deletions

View File

@ -11,6 +11,7 @@ using namespace std;
#include <cppunit/extensions/HelperMacros.h>
#include <qgsproject.h>
#include <qgsexception.h>
#include <qstring.h>
@ -21,9 +22,6 @@ using namespace std;
@todo XXX add tests for:
entryList()
removeEntry()
clearProperties()
read()
write()
@ -212,7 +210,18 @@ class ProjectTest : public CppUnit::TestFixture
QgsProject::instance()->clearProperties();
CPPUNIT_ASSERT( QgsProject::instance()->read() );
try
{
CPPUNIT_ASSERT( QgsProject::instance()->read() );
}
catch( QgsException & e )
{
// since we're not running the full application, this exception is
// expected, so we can safely ignore it
qDebug( "%s:%d caught expected exception %s", __FILE__, __LINE__, e.what() );
}
bool status;

View File

@ -276,7 +276,7 @@ QGIS_FILES = qgisapp.o \
QGIS_OBJS = $$join(QGIS_FILES," ../../src/qgis-"," ../../src/qgis-")
DEFINES = QGISDEBUG
DEFINES = QGISDEBUG
LIBS += -lcppunit -dl $$QGIS_OBJS $$GDAL_LIBS -lsqlite3