On Sun, 11 May 2025 08:42:41 GMT, Abhishek N <d...@openjdk.org> wrote:
>> Create a Test case to have special cases coverage for currency.getInstance(). >> >> The test Validates that all currency codes and country-currency mappings in >> the input file are consistent with the Java Currency API. >> >> test results: >> >> jdk-24.0.2/bin/java -jar jtreg/lib/jtreg.jar -testjdk:jdk-24.0.2 >> -dir:jdk/test/jdk/ >> java/util/Currency/currencyEnhancedCoverage/ValidateCurrencyCoverage.java >> Directory "JTwork" not found: creating >> Directory "JTreport" not found: creating >> Test results: passed: 1 >> Report written to JTreport\html\report.html >> Results written to JTwork > > Abhishek N has updated the pull request incrementally with one additional > commit since the last revision: > > correcting jtreg header order, add meaningful comments for each test > methods and properties file The test case, by using example data "CW=ANG;2099-04-01-04-00-00;XCG", when Currency.getInstance ("XCG) is called; instead failing, it will work by overwriting System::currentTimeMillis. This call will return any future time. This will allow the currency XG to be a valid currency. It verifies the future currency at current time. ------------- PR Comment: https://git.openjdk.org/jdk/pull/25057#issuecomment-2884983555