8368091: Use JUnit Jupiter API in sun/net/ext, sun/net/www and sun/net/spi tests#30645
8368091: Use JUnit Jupiter API in sun/net/ext, sun/net/www and sun/net/spi tests#30645mahendrachhipa wants to merge 3 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back mchhipa! A progress list of the required criteria for merging this PR into |
|
@mahendrachhipa This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 50 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
@mahendrachhipa The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
| try { | ||
| selector.select(null); | ||
| Assert.fail("select() was expected to fail for null URI"); | ||
| fail("select() was expected to fail for null URI"); |
There was a problem hiding this comment.
we could simplify and use assertThrows here, and in other places/files as well
| public class HttpHeaderParserTest { | ||
| @DataProvider(name = "responses") | ||
| public Object[][] responses() { | ||
| public static Object[][] responses() { |
There was a problem hiding this comment.
Consider simplifying the method to use List.of and simply return List<String>
| try { | ||
| selector.select(uri); | ||
| Assert.fail("select() was expected to fail for URI " + uri); | ||
| fail("select() was expected to fail for URI " + uri); |
There was a problem hiding this comment.
Same here. Use assertThrows, even consider removind this method.
Marcono1234
left a comment
There was a problem hiding this comment.
Hopefully these comments are useful, if not please let me know. They are only suggestions; feel free to ignore them, I am not an OpenJDK member.
There was a problem hiding this comment.
Use JUnit's fail(...) instead of assertTrue(false, ...)?
There was a problem hiding this comment.
Not directly related to JUnit changes, but use canonical way to write array type here?
- String expected[]
+ String[] expected
dfuch
left a comment
There was a problem hiding this comment.
LGTM. Don't forget to log a new task for revisiting DirPermissionDenied.java.
|
/integrate |
|
Going to push as commit 9d6a94e.
Your commit was automatically rebased without conflicts. |
|
@mahendrachhipa Pushed as commit 9d6a94e. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Following tests are refactored to use JUnit Jupiter API :
sun/net/ext/ExtendedSocketOptionsTest.java
sun/net/www/protocol/file/DirPermissionDenied.java
sun/net/www/protocol/jar/MultiReleaseJarURLConnection.java
sun/net/www/protocol/jrt/Basic.java
sun/net/www/protocol/http/TestTransparentNTLM.java
sun/net/www/protocol/http/HttpHeaderParserTest.java
sun/net/www/http/RequestMethodCheck/RequestMethodEquality.java
sun/net/www/http/KeepAliveStreamCleaner/java.base/sun/net/www/http/KeepAliveStreamCleanerTest.java
sun/net/www/http/KeepAliveStreamCleaner/KeepAliveStreamCleanerTestDriver.java
sun/net/www/MessageHeaderTest.java
sun/net/spi/DefaultProxySelectorTest.java
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/30645/head:pull/30645$ git checkout pull/30645Update a local copy of the PR:
$ git checkout pull/30645$ git pull https://git.openjdk.org/jdk.git pull/30645/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 30645View PR using the GUI difftool:
$ git pr show -t 30645Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/30645.diff
Using Webrev
Link to Webrev Comment