On Tue, 3 Mar 2026 15:31:20 GMT, Daniel Fuchs <[email protected]> wrote:

> Please find here a change that refactor TestNG tests under 
> `test/jdk/java/net/httpclient/whitebox` to use junit.
> 
> This is a test change only and mostly mechanical.

test/jdk/java/net/httpclient/whitebox/java.net.http/jdk/internal/net/http/common/DemandTest.java
 line 96:

> 94:     @Test
> 95:     public void test08() {
> 96:         Assertions.assertThrows(IllegalArgumentException.class, () -> {

Why not "import static org.junit.jupiter.api.Assertions.assertThrows;" to avoid 
declare the class name everytime

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

PR Review Comment: https://git.openjdk.org/jdk/pull/30027#discussion_r2882009921

Reply via email to