On Tue, 10 Mar 2026 13:30:17 GMT, Christian Stein <[email protected]> wrote:

> Please review this change to make tests in 
> `test/langtools/jdk/internal/shellsupport/doc/` use JUnit.
> 
> The refactoring mostly converts `@Test` annotations from the class 
> declaration to the method level, replaces `@run testng/...` tags with `@run 
> junit/...`, and also flips the arguments of a single `assertEqual()` to have 
> the expected value in first position.
> 
> A local run of `$ make test 
> TEST=test/langtools/jdk/internal/shellsupport/doc/` now shows:
> 
> Running test 'jtreg:test/langtools/jdk/internal/shellsupport/doc'
> Passed: jdk/internal/shellsupport/doc/JavadocFormatterTest.java
> Passed: jdk/internal/shellsupport/doc/JavadocHelperTest.java
> Passed: jdk/internal/shellsupport/doc/FullJavadocHelperTest.java
> Test results: passed: 3
> Framework-based tests: 21 = 0 TestNG + 21 JUnit

This pull request has now been integrated.

Changeset: d3158e71
Author:    Christian Stein <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/d3158e71c6a0b5a78a04fc9a7e2d33174cb7fe49
Stats:     36 lines in 3 files changed: 21 ins; 3 del; 12 mod

8379628: Refactor langtools/shellsupport/doc tests to use JUnit

Reviewed-by: hannesw

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

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

Reply via email to