@@ -46,27 +46,27 @@ void TestQgsServerWmsExceptions::cleanupTestCase()
46
46
47
47
void TestQgsServerWmsExceptions::exception_code ()
48
48
{
49
- QgsWms::QgsServiceException::ExceptionCode code = QgsWms::QgsServiceException::OGC_INVALID_FORMAT ;
49
+ QgsWms::QgsServiceException::ExceptionCode code = QgsWms::QgsServiceException::OGC_InvalidFormat ;
50
50
QgsWms::QgsServiceException exception0 ( code, QString (), 400 );
51
51
QCOMPARE ( exception0.code (), QString ( " InvalidFormat" ) );
52
52
53
- code = QgsWms::QgsServiceException::QGIS_INVALID_PARAMETER_VALUE ;
53
+ code = QgsWms::QgsServiceException::QGIS_InvalidParameterValue ;
54
54
QgsWms::QgsServiceException exception1 ( code, QString (), 400 );
55
55
QCOMPARE ( exception1.code (), QString ( " InvalidParameterValue" ) );
56
56
}
57
57
58
58
void TestQgsServerWmsExceptions::exception_message ()
59
59
{
60
- QgsWms::QgsServiceException::ExceptionCode code = QgsWms::QgsServiceException::QGIS_MISSING_PARAMETER_VALUE ;
60
+ QgsWms::QgsServiceException::ExceptionCode code = QgsWms::QgsServiceException::QGIS_MissingParameterValue ;
61
61
QgsWms::QgsServiceException exception ( code, QgsWms::QgsWmsParameter::LAYER, 400 );
62
62
QCOMPARE ( exception.message (), QString ( " The LAYER parameter is missing." ) );
63
63
64
- code = QgsWms::QgsServiceException::OGC_INVALID_SRS ;
64
+ code = QgsWms::QgsServiceException::OGC_InvalidSRS ;
65
65
QgsWms::QgsServiceException exception_srs ( code, QgsWms::QgsWmsParameter::SRS, 400 );
66
66
QCOMPARE ( exception_srs.message (), QString ( " The SRS is not valid." ) );
67
67
QCOMPARE ( exception_srs.code (), QString ( " InvalidSRS" ) );
68
68
69
- code = QgsWms::QgsServiceException::OGC_INVALID_CRS ;
69
+ code = QgsWms::QgsServiceException::OGC_InvalidCRS ;
70
70
QgsWms::QgsServiceException exception_crs ( code, QgsWms::QgsWmsParameter::CRS, 400 );
71
71
QCOMPARE ( exception_crs.message (), QString ( " The CRS is not valid." ) );
72
72
QCOMPARE ( exception_crs.code (), QString ( " InvalidCRS" ) );
0 commit comments