-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-42002: [Java] Update Unit Tests for Vector Module #42019
Conversation
- Before -> BeforeEach - BeforeClass -> BeforeAll - After -> AfterEach - AfterClass -> AfterAll - Test -> Test
|
@llama90 I will review this later today. |
@vibhatha Thanks! I'll try to review it myself before your review. |
@llama90 wonderful! Ping me once you're ready. Thanks. |
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.
@vibhatha Hello.
I have completed my self-review. I specifically focused on the ParameterizedTest
and Rule
annotations. Please prioritize reviewing these sections.
Thank you!
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.
ParameterizedTest
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.
Approach LGTM! Thanks for the improvement.
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.
ParameterizedTest
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.
Yep, this one too. Thanks.
@@ -154,9 +152,6 @@ public void testSchemaDictionaryMessageSerialization() throws IOException { | |||
assertEquals(schema, deserialized); | |||
} | |||
|
|||
@Rule | |||
public ExpectedException expectedEx = ExpectedException.none(); |
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.
Is this code really unused?
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.
The test that used it was added 7 years ago and since removed, so it appears so.
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.
Thanks!
@@ -154,9 +152,6 @@ public void testSchemaDictionaryMessageSerialization() throws IOException { | |||
assertEquals(schema, deserialized); | |||
} | |||
|
|||
@Rule | |||
public ExpectedException expectedEx = ExpectedException.none(); |
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.
The test that used it was added 7 years ago and since removed, so it appears so.
java/vector/src/test/java/org/apache/arrow/vector/TestLargeVarCharVector.java
Outdated
Show resolved
Hide resolved
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.
Thanks @llama90 for working on this PR. LGTM!
After merging your PR, Conbench analyzed the 5 benchmarking runs that have been run so far on merge-commit fe4d04f. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them. |
Rationale for this change
Update package from JUnit 4(
org.junit
) to JUnit 5(org.junit.jupiter
).What changes are included in this PR?
org.junit
withorg.junit.jupiter.api
.Assertions.assertXXX
toassertXXX
using static imports.@Before
,@BeforeClass
,@After
,@AfterClass
.@Before
->@BeforeEach
@BeforeClass
->@BeforeAll
@After
->@AfterEach
@AfterClass
->@AfterAll
@Test
->@Test
withorg.junit.jupiter
@Rule
AnnotationParameterized
testAre these changes tested?
Yes, existing tests have passed.
Are there any user-facing changes?
No.