@@ -210,15 +210,15 @@ public void test50545_CC_20130902() throws Exception {
210210 */
211211 ReportAssert .assertCount (1 , CnigErrorCodes .CNIG_METADATA_SPECIFICATION_NOT_FOUND , report );
212212 ReportAssert .assertCount (1 , CnigErrorCodes .CNIG_METADATA_REFERENCESYSTEMIDENTIFIER_URI_NOT_FOUND , report );
213- ReportAssert .assertCount (1 , CnigErrorCodes .CNIG_TABLE_MISSING_PRESENCE_OPTIONAL_ATTRIBUTE , report );
214- ReportAssert .assertCount (1 + 1 + 1 , ErrorLevel .ERROR , report );
213+ ReportAssert .assertCount (1 + 1 , ErrorLevel .ERROR , report );
215214
216215 /*
217216 * check warnings
218217 */
219218 ReportAssert .assertCount (3 , CoreErrorCodes .METADATA_LOCATOR_NAME_NOT_FOUND , report );
220219 ReportAssert .assertCount (3 , CoreErrorCodes .METADATA_LOCATOR_PROTOCOL_NOT_FOUND , report );
221- ReportAssert .assertCount (6 , ErrorLevel .WARNING , report );
220+ ReportAssert .assertCount (1 , CnigErrorCodes .CNIG_TABLE_MISSING_PRESENCE_OPTIONAL_ATTRIBUTE , report );
221+ ReportAssert .assertCount (3 + 3 + 1 , ErrorLevel .WARNING , report );
222222
223223 /*
224224 * check some infos
@@ -328,15 +328,15 @@ public void test19182_CC_20150517() throws Exception {
328328 ReportAssert .assertCount (2 , CoreErrorCodes .ATTRIBUTE_GEOMETRY_INVALID , report );
329329 ReportAssert .assertCount (19 , CoreErrorCodes .ATTRIBUTE_UNEXPECTED_VALUE , report );
330330 ReportAssert .assertCount (1 , CnigErrorCodes .CNIG_GEOMETRY_COMPLEXITY_ERROR , report );
331- ReportAssert .assertCount (1 , CnigErrorCodes .CNIG_TABLE_MISSING_PRESENCE_OPTIONAL_ATTRIBUTE , report );
332- ReportAssert .assertCount (1 + 2 + 2 + 19 + 1 + 1 , ErrorLevel .ERROR , report );
331+ ReportAssert .assertCount (1 + 2 + 2 + 19 + 1 , ErrorLevel .ERROR , report );
333332
334333 /*
335334 * check warnings
336335 */
337336 ReportAssert .assertCount (3 , CoreErrorCodes .METADATA_LOCATOR_PROTOCOL_NOT_FOUND , report );
338337 ReportAssert .assertCount (0 , CnigErrorCodes .CNIG_GEOMETRY_COMPLEXITY_WARNING , report );
339- ReportAssert .assertCount (3 + 0 , ErrorLevel .WARNING , report );
338+ ReportAssert .assertCount (1 , CnigErrorCodes .CNIG_TABLE_MISSING_PRESENCE_OPTIONAL_ATTRIBUTE , report );
339+ ReportAssert .assertCount (3 + 0 + 1 , ErrorLevel .WARNING , report );
340340
341341 /*
342342 * check document-info.json
@@ -764,10 +764,9 @@ public void test30014_PLU_20171013() throws Exception {
764764 ReportAssert .assertCount (0 , CoreErrorCodes .DATABASE_CONSTRAINT_MISMATCH , report );
765765 ReportAssert .assertCount (1 , CoreErrorCodes .TABLE_FOREIGN_KEY_NOT_FOUND , report );
766766 ReportAssert .assertCount (2 , CnigErrorCodes .CNIG_PIECE_ECRITE_ONLY_PDF , report );
767- ReportAssert .assertCount (6 , CnigErrorCodes .CNIG_TABLE_MISSING_PRESENCE_OPTIONAL_ATTRIBUTE , report );
768767 ReportAssert .assertCount (1 , CoreErrorCodes .ATTRIBUTE_UNEXPECTED_VALUE , report );
769768 ReportAssert .assertCount (1 , CoreErrorCodes .ATTRIBUTE_FILE_NOT_FOUND , report );
770- ReportAssert .assertCount (18 + 0 + 1 + 2 + 6 + 1 + 1 , ErrorLevel .ERROR , report );
769+ ReportAssert .assertCount (18 + 0 + 1 + 2 + 1 + 1 , ErrorLevel .ERROR , report );
771770 ReportAssert .assertCount (0 , CnigErrorCodes .CNIG_GENERATEUR_SUP_NOT_FOUND , report );
772771 ReportAssert .assertCount (0 , CnigErrorCodes .CNIG_ASSIETTE_SUP_NOT_FOUND , report );
773772
@@ -792,7 +791,8 @@ public void test30014_PLU_20171013() throws Exception {
792791 ReportAssert .assertCount (1 , CnigErrorCodes .CNIG_IDURBA_MULTIPLE_FOUND , report );
793792 ReportAssert .assertCount (0 , CnigErrorCodes .CNIG_FILE_EXTENSION_INVALID , report );
794793 ReportAssert .assertCount (1 , CoreErrorCodes .FILE_UNEXPECTED , report );
795- ReportAssert .assertCount (2 , ErrorLevel .WARNING , report );
794+ ReportAssert .assertCount (6 , CnigErrorCodes .CNIG_TABLE_MISSING_PRESENCE_OPTIONAL_ATTRIBUTE , report );
795+ ReportAssert .assertCount (1 + 0 + 1 + 6 , ErrorLevel .WARNING , report );
796796
797797 /*
798798 * check document-info.json
@@ -832,14 +832,15 @@ public void test30014_PLU_20171013_flatOption() throws Exception {
832832 * check errors
833833 */
834834 ReportAssert .assertCount (0 , CnigErrorCodes .CNIG_PIECE_ECRITE_ONLY_PDF , report );
835- ReportAssert .assertCount (27 , ErrorLevel .ERROR , report );
835+ ReportAssert .assertCount (21 , ErrorLevel .ERROR , report );
836836
837837 /*
838838 * check warnings
839839 */
840840 ReportAssert .assertCount (1 , CnigErrorCodes .CNIG_IDURBA_MULTIPLE_FOUND , report );
841841 ReportAssert .assertCount (1 , CoreErrorCodes .FILE_UNEXPECTED , report );
842- ReportAssert .assertCount (2 + 1 , ErrorLevel .WARNING , report );
842+ ReportAssert .assertCount (6 , CnigErrorCodes .CNIG_TABLE_MISSING_PRESENCE_OPTIONAL_ATTRIBUTE , report );
843+ ReportAssert .assertCount (2 + 1 + 6 , ErrorLevel .WARNING , report );
843844
844845 ReportAssert .assertCount (1 , CnigErrorCodes .CNIG_FILE_EXTENSION_INVALID , report );
845846 {
@@ -882,13 +883,13 @@ public void test200011781_PLUi_20180101() throws Exception {
882883 */
883884 ReportAssert .assertCount (4 , CoreErrorCodes .ATTRIBUTE_GEOMETRY_INVALID , report );
884885 ReportAssert .assertCount (1 , CoreErrorCodes .ATTRIBUTE_INVALID_REGEXP , report );
885- ReportAssert .assertCount (1 , CnigErrorCodes .CNIG_TABLE_MISSING_PRESENCE_OPTIONAL_ATTRIBUTE , report );
886- ReportAssert .assertCount (4 + 1 + 1 , ErrorLevel .ERROR , report );
886+ ReportAssert .assertCount (4 + 1 , ErrorLevel .ERROR , report );
887887
888888 /*
889889 * check warnings
890890 */
891- ReportAssert .assertCount (0 , ErrorLevel .WARNING , report );
891+ ReportAssert .assertCount (1 , CnigErrorCodes .CNIG_TABLE_MISSING_PRESENCE_OPTIONAL_ATTRIBUTE , report );
892+ ReportAssert .assertCount (1 , ErrorLevel .WARNING , report );
892893
893894 /*
894895 * check document-info.json
@@ -933,7 +934,8 @@ public void test241800432_PLUi_20200128() throws Exception {
933934 */
934935 ReportAssert .assertCount (1 , CnigErrorCodes .CNIG_DOC_URBA_COM_UNEXPECTED_SIZE , report );
935936 ReportAssert .assertCount (0 , CnigErrorCodes .CNIG_TXT_REGEXP_INVALID , report );
936- ReportAssert .assertCount (1 , ErrorLevel .WARNING , report );
937+ ReportAssert .assertCount (4 , CnigErrorCodes .CNIG_TABLE_MISSING_PRESENCE_OPTIONAL_ATTRIBUTE , report );
938+ ReportAssert .assertCount (1 + 0 + 4 , ErrorLevel .WARNING , report );
937939
938940 /*
939941 * check document-info.json
0 commit comments