File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,16 @@ void TestQgsServerWmsExceptions::exception_message()
60
60
QgsWms::QgsServiceException::ExceptionCode code = QgsWms::QgsServiceException::QGIS_MISSING_PARAMETER_VALUE;
61
61
QgsWms::QgsServiceException exception ( code, QgsWms::QgsWmsParameter::LAYER, 400 );
62
62
QCOMPARE ( exception.message (), QString ( " The LAYER parameter is missing." ) );
63
+
64
+ code = QgsWms::QgsServiceException::OGC_INVALID_SRS;
65
+ QgsWms::QgsServiceException exception_srs ( code, QgsWms::QgsWmsParameter::SRS, 400 );
66
+ QCOMPARE ( exception_srs.message (), QString ( " The SRS is not valid." ) );
67
+ QCOMPARE ( exception_srs.code (), QString ( " InvalidSRS" ) );
68
+
69
+ code = QgsWms::QgsServiceException::OGC_INVALID_CRS;
70
+ QgsWms::QgsServiceException exception_crs ( code, QgsWms::QgsWmsParameter::CRS, 400 );
71
+ QCOMPARE ( exception_crs.message (), QString ( " The CRS is not valid." ) );
72
+ QCOMPARE ( exception_crs.code (), QString ( " InvalidCRS" ) );
63
73
}
64
74
65
75
QGSTEST_MAIN ( TestQgsServerWmsExceptions )
You can’t perform that action at this time.
0 commit comments