RFR: 8313613: Use JUnit in langtools/lib tests

Qing Xiao duke at openjdk.org
Thu Sep 7 07:16:10 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.

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

Commit messages:
 - Update test/langtools/lib/combo/TEST.properties
 - 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=00
  Issue: https://bugs.openjdk.org/browse/JDK-8313613
  Stats: 496 lines in 16 files changed: 242 ins; 42 del; 212 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