-
Notifications
You must be signed in to change notification settings - Fork 542
8340464: [TestBug] Convert parametrized base tests to JUnit 5 #1759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
👋 Welcome back jbhaskar! A progress list of the required criteria for merging this PR into |
|
@jaybhaskar 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 6 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 |
Webrevs
|
andy-goryachev-oracle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First batch of comments (up until ObservableArrayTest) - the general direction is good, but I would suggest to re-work the set up in all the parameterized tests, mainly for simplicity and consistency.
modules/javafx.base/src/test/java/test/com/sun/javafx/binding/BidirectionalBindingTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/com/sun/javafx/binding/BidirectionalBindingTest.java
Outdated
Show resolved
Hide resolved
...x.base/src/test/java/test/com/sun/javafx/binding/BidirectionalBindingWithConversionTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/com/sun/javafx/event/EventDispatchChainTest.java
Show resolved
Hide resolved
...s/javafx.base/src/test/java/test/javafx/beans/property/adapter/JavaBeanPropertyTestBase.java
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/binding/BindingsCreateBindingTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/binding/BindingsEqualsTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/binding/BindingsNumberCalculationsTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/binding/BindingsNumberCastTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/binding/GenericBindingTest.java
Outdated
Show resolved
Hide resolved
arapte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Providing a few minor comments.
...s/javafx.base/src/test/java/test/com/sun/javafx/property/adapter/PropertyDescriptorTest.java
Outdated
Show resolved
Hide resolved
....base/src/test/java/test/com/sun/javafx/property/adapter/ReadOnlyPropertyDescriptorTest.java
Outdated
Show resolved
Hide resolved
...s/javafx.base/src/test/java/test/javafx/util/converter/LocalDateTimeStringConverterTest.java
Show resolved
Hide resolved
...s/javafx.base/src/test/java/test/javafx/util/converter/LocalDateTimeStringConverterTest.java
Outdated
Show resolved
Hide resolved
...s/javafx.base/src/test/java/test/javafx/util/converter/LocalDateTimeStringConverterTest.java
Show resolved
Hide resolved
...s/javafx.base/src/test/java/test/javafx/util/converter/LocalDateTimeStringConverterTest.java
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/com/sun/javafx/binding/BidirectionalBindingTest.java
Outdated
Show resolved
Hide resolved
andy-goryachev-oracle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found some issues, please take a look.
modules/javafx.base/src/test/java/test/javafx/binding/BindingsNumberCastTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/collections/ObservableListEmptyTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/collections/ObservableListEmptyTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/collections/ObservableListEmptyTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/collections/ObservableListTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/util/converter/DateStringConverterTest.java
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/util/converter/DateTimeStringConverterTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/util/converter/DateTimeStringConverterTest.java
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/util/converter/ParameterizedConverterTest.java
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/util/converter/TimeStringConverterTest.java
Show resolved
Hide resolved
jaybhaskar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed , thanks for the support
arapte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are few more junit4 imports that should be removed too.
Please take a look.
- modules/javafx.base/src/test/java/test//javafx/binding/When_Boolean_Test.java:77: org.junit.Assert.assertEquals(expected, binding.getValue());
- modules/javafx.base/src/test/java/test//javafx/binding/When_Object_Test.java:78: org.junit.Assert.assertEquals(expected, binding.getValue());
- modules/javafx.base/src/test/java/test//javafx/binding/When_String_Test.java:77: org.junit.Assert.assertEquals(expected, binding.getValue());
- modules/javafx.base/src/test/java/test//javafx/beans/value/ObservableValueSubscriptionsTest.java:28:import static org.junit.Assert.assertNull;
- modules/javafx.base/src/test/java/test//javafx/collections/ObservableSubListIteratorTest.java:37:import static org.junit.Assert.assertEquals;
modules/javafx.base/src/test/java/test/javafx/util/converter/DateStringConverterTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/util/converter/DateTimeStringConverterTest.java
Outdated
Show resolved
Hide resolved
|
/reviewers 2 |
|
@andy-goryachev-oracle |
andy-goryachev-oracle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good now, with two very minor suggestions (will re-approve if you decide to update). thanks!
modules/javafx.base/src/test/java/test/javafx/util/converter/DateStringConverterTest.java
Outdated
Show resolved
Hide resolved
modules/javafx.base/src/test/java/test/javafx/util/converter/DateTimeStringConverterTest.java
Outdated
Show resolved
Hide resolved
andy-goryachev-oracle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
arapte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
The GHA failure is unrelated, see JDK-8353947 |
|
/integrate |
|
you could simply re-run the GHA jobs from the UI: click on the "..." [more actions] link, click on the failed job, there is a button somewhere at the top right with "Re-run failed jobs". |
|
Going to push as commit 61a248d.
Your commit was automatically rebased without conflicts. |
|
@jaybhaskar Pushed as commit 61a248d. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Migrated JUnit 4 tests in the jafax.base module to JUnit 5, replacing deprecated APIs, updating assertions, and refactoring test structures to align with JUnit 5's improved features.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1759/head:pull/1759$ git checkout pull/1759Update a local copy of the PR:
$ git checkout pull/1759$ git pull https://git.openjdk.org/jfx.git pull/1759/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1759View PR using the GUI difftool:
$ git pr show -t 1759Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1759.diff
Using Webrev
Link to Webrev Comment