Skip to content

Commit b597c9a

Browse files
committed
fix(test): bad territory code
1 parent 79e5f8b commit b597c9a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

validator-plugin-cnig/src/test/java/fr/ign/validator/cnig/regress/CnigValidatorRegressTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public void test19182_CC_20150517() throws Exception {
322322
*/
323323
ReportAssert.assertCount(3, CoreErrorCodes.METADATA_LOCATOR_PROTOCOL_NOT_FOUND, report);
324324
ReportAssert.assertCount(0, CnigErrorCodes.CNIG_GEOMETRY_COMPLEXITY_WARNING, report);
325-
ReportAssert.assertCount(3 + 0, ErrorLevel.WARNING, report);
325+
ReportAssert.assertCount(3 + 0 , ErrorLevel.WARNING, report);
326326

327327
/*
328328
* check document-info.json
@@ -550,14 +550,14 @@ public void test172014607_AC1_2A_20180130() throws Exception {
550550
ReportAssert.assertCount(104 + 206, CoreErrorCodes.ATTRIBUTE_UNEXPECTED_VALUE, report);
551551

552552
// check error sum
553-
ReportAssert.assertCount(104 + 4 + 2 + 2 + 1 + 826 + 310, ErrorLevel.ERROR, report);
553+
ReportAssert.assertCount(1, CnigErrorCodes.CNIG_SUP_BAD_TERRITORY_CODE, report);
554+
ReportAssert.assertCount(104 + 4 + 2 + 2 + 1 + 826 + 310 + 1, ErrorLevel.ERROR, report);
554555

555556
/*
556557
* check warnings
557558
*/
558-
ReportAssert.assertCount(1, CnigErrorCodes.CNIG_SUP_BAD_TERRITORY_CODE, report);
559559
ReportAssert.assertCount(1, CoreErrorCodes.METADATA_LOCATOR_PROTOCOL_NOT_FOUND, report);
560-
ReportAssert.assertCount(1 + 1, ErrorLevel.WARNING, report);
560+
ReportAssert.assertCount(1, ErrorLevel.WARNING, report);
561561

562562
/*
563563
* check document-info.json
@@ -996,13 +996,13 @@ public void testSupWithCodeDepOn2Characters() throws Exception {
996996
/*
997997
* check errors
998998
*/
999-
ReportAssert.assertCount(0, ErrorLevel.ERROR, report);
999+
ReportAssert.assertCount(1, CnigErrorCodes.CNIG_SUP_BAD_TERRITORY_CODE, report);
1000+
ReportAssert.assertCount(1, ErrorLevel.ERROR, report);
10001001

10011002
/*
10021003
* check warnings
10031004
*/
10041005
ReportAssert.assertCount(3, CoreErrorCodes.TABLE_UNEXPECTED_ATTRIBUTE, report);
1005-
ReportAssert.assertCount(1, CnigErrorCodes.CNIG_SUP_BAD_TERRITORY_CODE, report);
10061006
{
10071007
ValidatorError error = report.getErrorsByCode(CnigErrorCodes.CNIG_SUP_BAD_TERRITORY_CODE).get(0);
10081008
assertEquals("Le code de territoire '88' est invalide dans le nom de dossier.", error.getMessage());
@@ -1016,7 +1016,7 @@ public void testSupWithCodeDepOn2Characters() throws Exception {
10161016
error.getMessage()
10171017
);
10181018
}
1019-
ReportAssert.assertCount(3 + 1 + 1, ErrorLevel.WARNING, report);
1019+
ReportAssert.assertCount(3 + 1, ErrorLevel.WARNING, report);
10201020

10211021
/*
10221022
* check document-info.json

0 commit comments

Comments
 (0)