Skip to content

Commit 1333be1

Browse files
committedApr 11, 2019
Update unit tests
1 parent 8e67b26 commit 1333be1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎tests/src/server/wms/test_qgsserver_wms_exceptions.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,27 @@ void TestQgsServerWmsExceptions::cleanupTestCase()
4646

4747
void TestQgsServerWmsExceptions::exception_code()
4848
{
49-
QgsWms::QgsServiceException::ExceptionCode code = QgsWms::QgsServiceException::OGC_INVALID_FORMAT;
49+
QgsWms::QgsServiceException::ExceptionCode code = QgsWms::QgsServiceException::OGC_InvalidFormat;
5050
QgsWms::QgsServiceException exception0( code, QString(), 400 );
5151
QCOMPARE( exception0.code(), QString( "InvalidFormat" ) );
5252

53-
code = QgsWms::QgsServiceException::QGIS_INVALID_PARAMETER_VALUE;
53+
code = QgsWms::QgsServiceException::QGIS_InvalidParameterValue;
5454
QgsWms::QgsServiceException exception1( code, QString(), 400 );
5555
QCOMPARE( exception1.code(), QString( "InvalidParameterValue" ) );
5656
}
5757

5858
void TestQgsServerWmsExceptions::exception_message()
5959
{
60-
QgsWms::QgsServiceException::ExceptionCode code = QgsWms::QgsServiceException::QGIS_MISSING_PARAMETER_VALUE;
60+
QgsWms::QgsServiceException::ExceptionCode code = QgsWms::QgsServiceException::QGIS_MissingParameterValue;
6161
QgsWms::QgsServiceException exception( code, QgsWms::QgsWmsParameter::LAYER, 400 );
6262
QCOMPARE( exception.message(), QString( "The LAYER parameter is missing." ) );
6363

64-
code = QgsWms::QgsServiceException::OGC_INVALID_SRS;
64+
code = QgsWms::QgsServiceException::OGC_InvalidSRS;
6565
QgsWms::QgsServiceException exception_srs( code, QgsWms::QgsWmsParameter::SRS, 400 );
6666
QCOMPARE( exception_srs.message(), QString( "The SRS is not valid." ) );
6767
QCOMPARE( exception_srs.code(), QString( "InvalidSRS" ) );
6868

69-
code = QgsWms::QgsServiceException::OGC_INVALID_CRS;
69+
code = QgsWms::QgsServiceException::OGC_InvalidCRS;
7070
QgsWms::QgsServiceException exception_crs( code, QgsWms::QgsWmsParameter::CRS, 400 );
7171
QCOMPARE( exception_crs.message(), QString( "The CRS is not valid." ) );
7272
QCOMPARE( exception_crs.code(), QString( "InvalidCRS" ) );

0 commit comments

Comments
 (0)
Please sign in to comment.