diff --git a/phive-rules-ubl/src/test/java/com/helger/phive/ubl/mock/CTestFiles.java b/phive-rules-ubl/src/test/java/com/helger/phive/ubl/mock/CTestFiles.java index 49a3978a..7a1ae323 100644 --- a/phive-rules-ubl/src/test/java/com/helger/phive/ubl/mock/CTestFiles.java +++ b/phive-rules-ubl/src/test/java/com/helger/phive/ubl/mock/CTestFiles.java @@ -51,14 +51,15 @@ private CTestFiles () public static ICommonsList getAllTestFiles () { final ICommonsList ret = new CommonsArrayList <> (); - for (final VESID aESID : new VESID [] { UBLValidation.VID_UBL_20_INVOICE, - UBLValidation.VID_UBL_21_INVOICE, - UBLValidation.VID_UBL_22_INVOICE, - UBLValidation.VID_UBL_23_INVOICE }) - for (final IReadableResource aRes : getAllMatchingTestFiles (aESID)) + for (final VESID aVESID : new VESID [] { UBLValidation.VID_UBL_20_INVOICE, + UBLValidation.VID_UBL_21_INVOICE, + UBLValidation.VID_UBL_22_INVOICE, + UBLValidation.VID_UBL_23_INVOICE, + UBLValidation.VID_UBL_24_INVOICE }) + for (final IReadableResource aRes : getAllMatchingTestFiles (aVESID)) { assertTrue ("Not existing test file: " + aRes.getPath (), aRes.exists ()); - ret.add (TestFile.createGoodCase (aRes, aESID)); + ret.add (TestFile.createGoodCase (aRes, aVESID)); } return ret; } @@ -77,6 +78,8 @@ public static ICommonsList getAllMatchingTestFiles return new CommonsArrayList <> (UBLTestFiles.INVOICE_FILES, ClassPathResource::new); if (aVESID.equals (UBLValidation.VID_UBL_23_INVOICE)) return new CommonsArrayList <> (UBLTestFiles.INVOICE_FILES, ClassPathResource::new); + if (aVESID.equals (UBLValidation.VID_UBL_24_INVOICE)) + return new CommonsArrayList <> (UBLTestFiles.INVOICE_FILES, ClassPathResource::new); throw new IllegalArgumentException ("Invalid VESID: " + aVESID); }