Skip to content

Commit

Permalink
Improved
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Feb 12, 2024
1 parent 5719d61 commit ef2b797
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ private CTestFiles ()
public static ICommonsList <TestFile> getAllTestFiles ()
{
final ICommonsList <TestFile> 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;
}
Expand All @@ -77,6 +78,8 @@ public static ICommonsList <? extends IReadableResource> 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);
}
Expand Down

0 comments on commit ef2b797

Please sign in to comment.