RFR: 8313613: Use JUnit in langtools/lib tests [v4]

Qing Xiao xqoasis at openjdk.org
Fri Oct 13 00:51:19 UTC 2023


> Use JUnit Jupiter API in langtools/lib tests instead of TestNG. They are under test/langtools/lib/combo/tools/javac/combo/.
> Modified tests that extend tools in CompilationTestCase and JavacTemplateTestBase to implement TestWatcher.

Qing Xiao has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains ten commits:

 - Merge branch 'master' into JUnit_javac_combo
 - Merge pull request #1 from sormuras/pr/15281
   
   Cleanup conversion. Thanks Christian!
 - Cleanup conversion
 - remove unused JavacTemplateDiagnosticsPrinter.java
 - Update test/langtools/lib/combo/TEST.properties
   
   Co-authored-by: Christian Stein <sormuras at gmail.com>
 - Modified years
 - Modified tests which extends tools in /combo/tools/javac/combo. Added DiagnosticPrinter.
 - Modified tests which extends tools in /combo/tools/javac/combo
 - Use JUnit Jupiter API in langtools/lib tests instead of TestNG. (Under /combo/tools/javac/combo/)

-------------

Changes: https://git.openjdk.org/jdk/pull/15281/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15281&range=03
  Stats: 580 lines in 17 files changed: 204 ins; 107 del; 269 mod
  Patch: https://git.openjdk.org/jdk/pull/15281.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15281/head:pull/15281

PR: https://git.openjdk.org/jdk/pull/15281


More information about the compiler-dev mailing list