[jdk11u-dev] RFR: 8326503: [11u] java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java fail because of package org.junit.jupiter.api does not exist

Severin Gehwolf sgehwolf at openjdk.org
Mon Feb 26 11:22:56 UTC 2024


On Mon, 26 Feb 2024 10:57:28 GMT, Anton Bobrov <abobrov at openjdk.org> wrote:

> > Have you considered `@BeforeClass` and `@AfterClass` annotations?
> 
> yes, but they require related methods to be static which would require further refactoring which does not worth a stretch in this case as the tests are fairly lightweight and quick

I think we should try. It looks like making `control` and `serverThread` `static` would be fine and be similar what the test in JDK 17 does.

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

PR Comment: https://git.openjdk.org/jdk11u-dev/pull/2553#issuecomment-1963903317


More information about the jdk-updates-dev mailing list